Add comment
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
1ae611b21d
commit
68ff0d1095
@ -52,8 +52,7 @@ var authCreateAdminToken = &cli.Command{
|
|||||||
return fmt.Errorf("--perm flag has to be one of: %s", api.AllPermissions)
|
return fmt.Errorf("--perm flag has to be one of: %s", api.AllPermissions)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Probably tell the user how powerful this token is
|
// slice on [:idx] so for example: 'sign' gives you [read, write, sign]
|
||||||
|
|
||||||
token, err := napi.AuthNew(ctx, api.AllPermissions[:idx])
|
token, err := napi.AuthNew(ctx, api.AllPermissions[:idx])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user