demarches-normaliennes/app/controllers/admin/profile_controller.rb

12 lines
284 B
Ruby
Raw Normal View History

class Admin::ProfileController < AdminController
2015-12-14 17:25:35 +01:00
def show
@administrateur = current_administrateur
2015-12-14 17:25:35 +01:00
end
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