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.
This commit is contained in:
songtianlun 2025-01-08 16:31:08 +08:00
parent 299e930d1a
commit 2c7e4970f3

View File

@ -6,7 +6,7 @@
Welcome to the Sample App! Click on the link below to activate your account: Welcome to the Sample App! Click on the link below to activate your account:
</p> </p>
<%= 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) %>
<p> <p>
<%= edit_account_activation_url(@user.activation_token, email: @user.email) %> <%= edit_account_activation_url(@user.activation_token, email: @user.email) %>