We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a28d73 commit f33a083Copy full SHA for f33a083
app/controllers/users_controller.rb
@@ -81,7 +81,7 @@ def update
81
def confirm_email
82
token = VerificationToken.email.find_by!(user_id: params[:user_id], token: params[:id])
83
redirect_path = root_url
84
- redirect_path = 'https://course.elementsofai.com' if params[:origin] == 'elements_of_ai'
+ redirect_path = 'https://course.elementsofai.com/email-verification' if params[:origin] == 'elements_of_ai'
85
User.find(params[:user_id]).update!(email_verified: true)
86
redirect_to redirect_path, notice: 'Your email address has been verified!'
87
end
0 commit comments