Class: ActionAuth::PasswordsController

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

Instance Method Summary collapse

Instance Method Details

#editObject



6
7
# File 'app/controllers/action_auth/passwords_controller.rb', line 6

def edit
end

#updateObject



9
10
11
12
13
14
15
# File 'app/controllers/action_auth/passwords_controller.rb', line 9

def update
  if @user.update(user_params)
    redirect_to , notice: "Your password has been changed"
  else
    render :edit, status: :unprocessable_entity
  end
end