Sha256: a068d64c095ac1695ec16ed6779a68fc2e615640063b7514c233626472f68fe0

Contents?: true

Size: 531 Bytes

Versions: 13

Compression:

Stored size: 531 Bytes

Contents

class Auth::NewPasswordController < ApplicationController
  include RedirectIfAuthenticated

  skip_authenticate

  layout 'guest'

  def new
    @form = Auth::NewPasswordForm.new(params.permit(:token))

    render 'auth/reset_password'
  end

  def create
    @form = Auth::NewPasswordForm.new(params.permit(:token, :password, :password_confirmation))

    return redirect_to login_path, flash: { status: 'Your password has been reset.' } if @form.reset?

    render 'auth/reset_password', status: :unprocessable_entity
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kaze-1.0.1 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-1.0.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.19.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.18.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.17.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.16.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.15.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.14.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.13.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.12.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.11.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.10.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.9.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb