Profile: move to new design

This commit is contained in:
simon lehericey 2018-08-23 18:53:35 +02:00
parent f115658d55
commit bd04972f65
8 changed files with 30 additions and 24 deletions

View file

@ -0,0 +1,13 @@
module NewAdministrateur
class ProfilController < AdministrateurController
def show
@administrateur = current_administrateur
end
def renew_api_token
flash[:notice] = "Votre token d'API a été regénéré."
current_administrateur.renew_api_token
redirect_to profil_path
end
end
end