summaryrefslogtreecommitdiff
path: root/app/controllers/profiles_controller.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-23 12:52:36 +0200
committerJames Lopez <james@jameslopez.es>2017-06-23 12:52:36 +0200
commit0925f30134c9e4291a61241536fcea16e98ce90d (patch)
tree2aa72cbfe6a3a2b397e7a6f2abc2cb926d51ef4b /app/controllers/profiles_controller.rb
parentb804db26485ea09dc93269898dc969ed692130a2 (diff)
downloadgitlab-ce-0925f30134c9e4291a61241536fcea16e98ce90d.tar.gz
fix profiles spec
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r--app/controllers/profiles_controller.rb6
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