2018-08-23 18:53:35 +02:00
|
|
|
module NewAdministrateur
|
|
|
|
class ProfilController < AdministrateurController
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
|
|
|
def renew_api_token
|
2018-08-24 16:45:43 +02:00
|
|
|
@token = current_administrateur.renew_api_token
|
2018-08-24 14:19:44 +02:00
|
|
|
flash.now.notice = 'Votre jeton a été regénéré.'
|
|
|
|
render :show
|
2018-08-23 18:53:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|