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 53d5ee9 commit af45155Copy full SHA for af45155
app/controllers/users_controller.rb
@@ -87,7 +87,7 @@ def update
87
def confirm_email
88
token = VerificationToken.email.find_by!(user_id: params[:user_id], token: params[:id])
89
redirect_path = root_url
90
- redirect_path = 'https://course.elementsofai.com/email-verification' if params[:origin] == 'elements_of_ai'
+ redirect_path = 'https://course.elementsofai.com/email-verification' if params[:origin].start_with?('elements_of_ai')
91
User.find(params[:user_id]).update!(email_verified: true)
92
redirect_to redirect_path, notice: 'Your email address has been verified!'
93
end
0 commit comments