Sha256: f32cb1f4f084206c08142a61065f0a4eaa78655aa1ac6dfaae5e7eb79ee3add3

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

class Auth::NewPasswordController < ApplicationController
  skip_authentication

  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

2 entries across 2 versions & 1 rubygems

Version Path
kaze-0.4.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb
kaze-0.3.0 stubs/hotwire/app/controllers/auth/new_password_controller.rb