Sync topic (begin), rename user fields
This commit is contained in:
		
							parent
							
								
									b27c608508
								
							
						
					
					
						commit
						7e528d9c10
					
				
					 10 changed files with 107 additions and 82 deletions
				
			
		|  | @ -16,7 +16,8 @@ import ( | |||
| ) | ||||
| 
 | ||||
| const ( | ||||
| 	tierReset = "-" | ||||
| 	tierReset    = "-" | ||||
| 	createdByCLI = "cli" | ||||
| ) | ||||
| 
 | ||||
| func init() { | ||||
|  | @ -196,7 +197,7 @@ func execUserAdd(c *cli.Context) error { | |||
| 
 | ||||
| 		password = p | ||||
| 	} | ||||
| 	if err := manager.AddUser(username, password, role); err != nil { | ||||
| 	if err := manager.AddUser(username, password, role, createdByCLI); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	fmt.Fprintf(c.App.ErrWriter, "user %s added with role %s\n", username, role) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue