From 2c7e4970f31ee873797c87c2c9d61fd666a75acd Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 8 Jan 2025 16:31:08 +0800 Subject: [PATCH] fix: correct account activation link parameter - Change activation token parameter from `activation_token` to `id` in the account activation link. - This ensures the link correctly references the user activation token for account activation. --- app/views/user_mailer/account_activation.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user_mailer/account_activation.html.erb b/app/views/user_mailer/account_activation.html.erb index 3cc61d2..d0eba54 100644 --- a/app/views/user_mailer/account_activation.html.erb +++ b/app/views/user_mailer/account_activation.html.erb @@ -6,7 +6,7 @@ Welcome to the Sample App! Click on the link below to activate your account:

-<%= link_to "Activate", edit_account_activation_url(@user.activation_token, email: @user.email) %> +<%= link_to "Activate", edit_account_activation_url(id: @user.activation_token, email: @user.email) %>

<%= edit_account_activation_url(@user.activation_token, email: @user.email) %>