mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 19:57:29 +02:00
Merge remote-tracking branch 'origin/add-registrant-api-token-log' into add-role-filter-to-registrant-api
This commit is contained in:
commit
f60bf4013c
60 changed files with 1153 additions and 178 deletions
|
@ -19,6 +19,8 @@ module Api
|
|||
token = create_token(user)
|
||||
|
||||
if token
|
||||
ToStdout.msg("Bearer for #{eid_params[:first_name]} #{eid_params[:last_name]} " \
|
||||
"(#{eid_params[:ident]}) - '#{token[:access_token]}'")
|
||||
render json: token
|
||||
else
|
||||
render json: { errors: [{ base: ['Cannot create generate session token'] }] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue