Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlocking account through email link does not work #61

Closed
tomoyuki28jp opened this issue May 17, 2018 · 1 comment
Closed

Unlocking account through email link does not work #61

tomoyuki28jp opened this issue May 17, 2018 · 1 comment
Assignees

Comments

@tomoyuki28jp
Copy link

<p><%= link_to t('.action', default: 'Unlock my account'), unlock_url(@resource, unlock_token: @resource.unlock_token, locale: I18n.locale) %></p>

This line should be changes as following:

-<p><%= link_to t('.action', default: 'Unlock my account'), unlock_url(@resource, unlock_token: @resource.unlock_token, locale: I18n.locale) %></p>
+<p><%= link_to t('.action', default: 'Unlock my account'), unlock_url(@resource, unlock_token: @token, locale: I18n.locale) %></p>

ref1: https://stackoverflow.com/a/22641026
ref2: heartcombo/devise#3559 (comment)

My devise version is 4.4.3.

@dankimio dankimio self-assigned this Aug 19, 2018
@dankimio
Copy link
Collaborator

Resolved in 3a812ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants