Class: Accountly::PasswordsController

Inherits:
AccountController show all
Defined in:
app/controllers/accountly/passwords_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



11
12
13
14
15
16
17
18
# File 'app/controllers/accountly/passwords_controller.rb', line 11

def create
  @password_form = PasswordForm.new(current_user)
  if @password_form.submit( params[:password_form] )
    redirect_to settings_url, notice: t('.notice.success')
  else
    render "new"
  end
end

#newObject



7
8
9
# File 'app/controllers/accountly/passwords_controller.rb', line 7

def new
  @password_form = PasswordForm.new(current_user)
end