Skip to content
Snippets Groups Projects
Commit 21b31a67 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #280 from vesln/password-present

Fixing an issue in users#update when password is not present.
parents bed882e6 22e7f8ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment