Fixing an issue in users#update when password is not present.
This commit is contained in:
parent
3c9d7b7077
commit
22e7f8ffcc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue