Api Token: store token in an encrypted form
This commit is contained in:
parent
1997f45d7e
commit
8c4f8347ca
7 changed files with 34 additions and 13 deletions
|
@ -4,8 +4,7 @@ module NewAdministrateur
|
|||
end
|
||||
|
||||
def renew_api_token
|
||||
current_administrateur.renew_api_token
|
||||
@token = current_administrateur.api_token
|
||||
@token = current_administrateur.renew_api_token
|
||||
flash.now.notice = 'Votre jeton a été regénéré.'
|
||||
render :show
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue