diff options
author | James Lopez <james@jameslopez.es> | 2017-06-23 13:52:36 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 13:52:36 +0300 |
commit | 0925f30134c9e4291a61241536fcea16e98ce90d (patch) | |
tree | 2aa72cbfe6a3a2b397e7a6f2abc2cb926d51ef4b /app/controllers/profiles_controller.rb | |
parent | b804db26485ea09dc93269898dc969ed692130a2 (diff) |
fix profiles spec
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index e4985fdb2eb..076076fd1b3 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -27,7 +27,7 @@ class ProfilesController < Profiles::ApplicationController end def reset_private_token - Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| + Users::UpdateService.new(@user).execute! do |user| user.reset_authentication_token! end @@ -37,7 +37,7 @@ class ProfilesController < Profiles::ApplicationController end def reset_incoming_email_token - Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| + Users::UpdateService.new(@user).execute! do |user| user.reset_incoming_email_token! end @@ -47,7 +47,7 @@ class ProfilesController < Profiles::ApplicationController end def reset_rss_token - Users::UpdateService.new(@user).execute!(skip_authorization: true) do |user| + Users::UpdateService.new(@user).execute! do |user| user.reset_rss_token! end |