2015-12-15 16:49:48 +01:00
|
|
|
class Admin::ProfileController < AdminController
|
2015-12-14 17:25:35 +01:00
|
|
|
def show
|
2015-12-15 16:49:48 +01:00
|
|
|
@administrateur = current_administrateur
|
2015-12-14 17:25:35 +01:00
|
|
|
end
|
2017-12-26 18:30:36 +01:00
|
|
|
|
|
|
|
def renew_api_token
|
|
|
|
flash[:notice] = "Votre token d'API a été regénéré."
|
|
|
|
current_administrateur.renew_api_token
|
|
|
|
redirect_to admin_profile_path
|
|
|
|
end
|
2015-12-14 17:25:35 +01:00
|
|
|
end
|