diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-05-23 18:02:05 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-05-24 23:29:59 +0300 |
commit | 6dc2ade49ccc45c29c3fe05d6ccc4811fd198aea (patch) | |
tree | 0e7d46e22e4422065ba555b35c4fdd6f0ae96d1c /app/controllers/profiles_controller.rb | |
parent | 30141169eca70e099c77da066cb51731bfa54ff6 (diff) |
user can reset his rss token on the account page
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 57e23cea00e..8cd1c47eb3f 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -40,6 +40,14 @@ class ProfilesController < Profiles::ApplicationController redirect_to profile_account_path end + def reset_rss_token + if current_user.reset_rss_token! + flash[:notice] = "RSS token was successfully reset" + end + + redirect_to profile_account_path + end + def audit_log @events = AuditEvent.where(entity_type: "User", entity_id: current_user.id). order("created_at DESC"). |