We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
デモサーバーと手元で1.2.0を新規インストールした環境の両方で再現しました。
メッセージでGoogle検索したところ、Devise 3.1.0以降ではメールテンプレートの変更が必要という情報が見つかりました。
Rails 4 + Devise: Password Reset is always giving a "Token is invalid" error on the production server, but works fine locally. - Stack Overflow http://stackoverflow.com/questions/19018657/rails-4-devise-password-reset-is-always-giving-a-token-is-invalid-error-on
該当の箇所を見ると、確かに以下のように古い形式になっていました。
edit_password_url(@resource, :reset_password_token => @resource.reset_password_token)
試しに手元で以下のように書き換えてみたところ、正常にパスワードをリセットできました。おそらく同じディレクトリの他の2つのファイルも変更が必要かと思います。
edit_password_url(@resource, :reset_password_token => @token)
The text was updated successfully, but these errors were encountered:
Patch password reset issue in 1.2.0
8876998
next-l/enju_leaf#1262
update devise template files #1262
64bd27a
デモサーバーで確認しました。
できるようになっていましたので、クローズします。
enju_biblio: 0.2.3 enju_bookmark: 0.2.1 enju_circulation: 0.2.3 enju_event: 0.2.1 enju_leaf: 1.2.2 enju_library: 0.2.3 enju_manifestation_viewer: 0.2.1 enju_message: 0.2.2 enju_ndl: 0.2.3 enju_purchase_request: 0.2.0 enju_seed: 0.2.2 enju_subject: 0.2.2
Sorry, something went wrong.
No branches or pull requests
デモサーバーと手元で1.2.0を新規インストールした環境の両方で再現しました。
再現手順
原因?
メッセージでGoogle検索したところ、Devise 3.1.0以降ではメールテンプレートの変更が必要という情報が見つかりました。
Rails 4 + Devise: Password Reset is always giving a "Token is invalid" error on the production server, but works fine locally. - Stack Overflow
http://stackoverflow.com/questions/19018657/rails-4-devise-password-reset-is-always-giving-a-token-is-invalid-error-on
該当の箇所を見ると、確かに以下のように古い形式になっていました。
試しに手元で以下のように書き換えてみたところ、正常にパスワードをリセットできました。おそらく同じディレクトリの他の2つのファイルも変更が必要かと思います。
The text was updated successfully, but these errors were encountered: