Client: validation + get user.
This commit is contained in:
		
							parent
							
								
									ecc2290a09
								
							
						
					
					
						commit
						e3f52ff088
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										7
									
								
								makefile
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								makefile
									
										
									
									
									
								
							|  | @ -38,6 +38,13 @@ add-user: | |||
| register: | ||||
| 	./bin/authc user register $(NAME) $(EMAIL) | ||||
| 
 | ||||
| ACTIVATION_KEY ?= put-your-key-here | ||||
| validate: | ||||
| 	./bin/authc user validate $(NAME) $(ACTIVATION_KEY) | ||||
| 
 | ||||
| get-user: | ||||
| 	./bin/authc user get $(NAME) $(LOGIN_OPT) | ||||
| 
 | ||||
| SERVICE    ?= 'auth' | ||||
| RESOURCE   ?= '*' | ||||
| UID        ?= 1000 | ||||
|  |  | |||
|  | @ -119,7 +119,7 @@ parser = OptionParser.new do |parser| | |||
| 		parser.on "validate", "Validate user." do | ||||
| 			parser.banner = "Usage: user validate login activation-key [opt]" | ||||
| 			Baguette::Log.info "Validate user." | ||||
| 			Context.command = "user-validate" | ||||
| 			Context.command = "user-validation" | ||||
| 			# No need to be authenticated. | ||||
| 			opt_help.call parser | ||||
| 			# login activation-key | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue