Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-15 16:34:24 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-15 16:34:24 +0400
commit21b31a675dd314f987276e64c7c5f7aa9b30f4fb (patch)
tree02dc1ed31e65aaa8abdc34742d6fcd5bd83aeb92 /app
parentbed882e647fbef00305eb1db792c1e3b49849baf (diff)
parent22e7f8ffccb91b9d6565f02dfe8c9ef8e6447b3a (diff)
Merge pull request #280 from vesln/password-present
Fixing an issue in users#update when password is not present.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
index 033332a78e3..85a95de5a17 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -38,7 +38,7 @@ class Admin::UsersController < ApplicationController
def update
admin = params[:user].delete("admin")
- if params[:user][:password].empty?
+ if params[:user][:password].blank?
params[:user].delete(:password)
params[:user].delete(:password_confirmation)
end