Sha256: b0feedb181ef8601ba07873a95387bf40f09cf42daf67429962388a5ebb87951
Contents?: true
Size: 529 Bytes
Versions: 3
Compression:
Stored size: 529 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
3 entries across 3 versions & 1 rubygems