diff options
author | Lukas Eipert <git@leipert.io> | 2018-04-04 12:48:29 +0200 |
---|---|---|
committer | Lukas Eipert <git@leipert.io> | 2018-04-04 12:48:29 +0200 |
commit | 011840b7a58c73d30633341fcc00bc66a0465cb6 (patch) | |
tree | 2d8d7793c1a8fa8b1faaf5d234a5ae98d6796753 | |
parent | d6b465827b84d25e21cfa3ef0553609ac66fbd42 (diff) | |
download | gitlab-ce-011840b7a58c73d30633341fcc00bc66a0465cb6.tar.gz |
fix failing test and resolve open BE discussion
-rw-r--r-- | app/controllers/profiles_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index cac4aac8d97..cb0ccea58aa 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -51,9 +51,8 @@ class ProfilesController < Profiles::ApplicationController end def update_username + result = Users::UpdateService.new(current_user, user: @user, username: username_param).execute respond_to do |format| - result = Users::UpdateService.new(current_user, user: @user, username: user_params[:username]).execute - if result[:status] == :success message = "Username successfully changed" |