Client: validation + get user.
parent
ecc2290a09
commit
e3f52ff088
7
makefile
7
makefile
|
@ -38,6 +38,13 @@ add-user:
|
||||||
register:
|
register:
|
||||||
./bin/authc user register $(NAME) $(EMAIL)
|
./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'
|
SERVICE ?= 'auth'
|
||||||
RESOURCE ?= '*'
|
RESOURCE ?= '*'
|
||||||
UID ?= 1000
|
UID ?= 1000
|
||||||
|
|
|
@ -119,7 +119,7 @@ parser = OptionParser.new do |parser|
|
||||||
parser.on "validate", "Validate user." do
|
parser.on "validate", "Validate user." do
|
||||||
parser.banner = "Usage: user validate login activation-key [opt]"
|
parser.banner = "Usage: user validate login activation-key [opt]"
|
||||||
Baguette::Log.info "Validate user."
|
Baguette::Log.info "Validate user."
|
||||||
Context.command = "user-validate"
|
Context.command = "user-validation"
|
||||||
# No need to be authenticated.
|
# No need to be authenticated.
|
||||||
opt_help.call parser
|
opt_help.call parser
|
||||||
# login activation-key
|
# login activation-key
|
||||||
|
|
Loading…
Reference in New Issue