Class: Iron::Users::PasswordsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/iron/users/passwords_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



6
7
8
9
10
11
12
# File 'app/controllers/iron/users/passwords_controller.rb', line 6

def update
  if @user.person.update(params.require(:user).permit(:password, :password_confirmation))
    redirect_to @user, notice: t("iron.users.notifications.password_changed")
  else
    render "iron/users/show", status: :unprocessable_entity
  end
end