Client: validation + get user.

master
Philippe Pittoli 2023-06-15 02:43:24 +02:00
parent ecc2290a09
commit e3f52ff088
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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