summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-10-12 10:21:16 +0200
committerDouwe Maan <douwe@selenight.nl>2017-11-02 11:39:01 +0100
commit4b93429a4e7161460ecde6b0cf56480b03e8e600 (patch)
treecba999424a75565af0d9d8e5e5c8e5debc9d5d92 /app/controllers
parent3c03388ba047d073bd6585a201f6e56060676dcf (diff)
downloadgitlab-ce-4b93429a4e7161460ecde6b0cf56480b03e8e600.tar.gz
Remove Private Token from User Settings > Account
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/profiles_controller.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index 5d87037f012..da878b59b8b 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -24,16 +24,6 @@ class ProfilesController < Profiles::ApplicationController
end
end
- def reset_private_token
- Users::UpdateService.new(current_user, user: @user).execute! do |user|
- user.reset_authentication_token!
- end
-
- flash[:notice] = "Private token was successfully reset"
-
- redirect_to profile_account_path
- end
-
def reset_incoming_email_token
Users::UpdateService.new(current_user, user: @user).execute! do |user|
user.reset_incoming_email_token!