Profile: move to new design
This commit is contained in:
parent
f115658d55
commit
bd04972f65
8 changed files with 30 additions and 24 deletions
13
app/controllers/new_administrateur/profil_controller.rb
Normal file
13
app/controllers/new_administrateur/profil_controller.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue