Api Token: store token in an encrypted form

This commit is contained in:
simon lehericey 2018-08-24 16:45:43 +02:00
parent 1997f45d7e
commit 8c4f8347ca
7 changed files with 34 additions and 13 deletions

View file

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