Skip to content

Commit

Permalink
Merge branch 'following-users'
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Mar 3, 2017
2 parents 87968bf + 0eee37b commit 521772b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/password_resets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def edit

def update
if params[:user][:password].empty? # Case (3)
@user.errors.add(:password, "can't be empty")
@user.errors.add(:password, :blank)
render 'edit'
elsif @user.update_attributes(user_params) # Case (4)
log_in @user
Expand Down

0 comments on commit 521772b

Please sign in to comment.