Sha256: 5bff4cfa3f107d93173e4374713e312e944622673f9eef77d6356134e86e1c3f
Contents?: true
Size: 542 Bytes
Versions: 9
Compression:
Stored size: 542 Bytes
Contents
class Auth::PasswordResetLinkController < ApplicationController include RedirectIfAuthenticated skip_authenticate layout 'guest' def new @form = Auth::SendPasswordResetLinkForm.new render 'auth/forgot_password' end def create @form = Auth::SendPasswordResetLinkForm.new(params.permit(:email)) return redirect_back_or_to password_request_path, flash: { status: 'We have emailed your password reset link.' } if @form.send_reset_link? render 'auth/forgot_password', status: :unprocessable_entity end end
Version data entries
9 entries across 9 versions & 1 rubygems