Sha256: e2fe893a6875c9e2ba8b5b21471c5a90b73be1f03aab3d36f1794732838049fd
Contents?: true
Size: 496 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaze-0.5.0 | stubs/hotwire/app/controllers/auth/new_password_controller.rb |