-
Notifications
You must be signed in to change notification settings - Fork 37
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
Uninitialized constant Users error for expired links #3
Comments
Oh that’s not good. Can you share your routes from config/routes.rb?
…On Mon, Apr 26, 2021 at 12:42 AM Adrien Poly ***@***.***> wrote:
Hello
Thanks for this great Gem.
For an expired link I am seeing a strange error that I have hard time
understanding how to fix it.
The error happens in the call to warden
self.resource = warden.authenticate!(auth_options)
[image: Capture d’écran 2021-04-26 à 7 27 00 AM]
<https://user-images.githubusercontent.com/7847244/116032925-cd844100-a660-11eb-9436-19d067db888a.jpg>
I tried this but still getting the same error
def show
self.resource = warden.authenticate!(auth_options)
set_flash_message!(:notice, :signed_in)
sign_in(resource_name, resource)
yield resource if block_given?
redirect_to after_sign_in_path_for(resource)
rescue
flash[:notice] = t("devise.failure.user.magic_link_invalid")
redirect_to root_path
end
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFO4ZOYR7XPUM5BKDXX5TTKT4KXANCNFSM43SENMDA>
.
|
sure the project is open source here https://github.com/hostolab/covidliste/blob/master/config/routes.rb Lots of the issues and PR etc are in french but the code is all in English 😄 |
@adrienpoly Thank you very much for reporting; I believe this is a bug in my gem with certain routes not being calculated correctly. I've opened a PR on your project you can review to see if it fixes your issue: hostolab/covidliste#587 I am going to push an update to this project's generators to match the PR change so others won't encounter this problem. Thanks for finding this! |
This is awesome, thanks for your quick answer 🚀 |
I can confirm that it fixed the issue on our side thanks |
Great, thanks for letting me know! I've released 0.6 version of the gem with a fixed generator. |
Hello
Thanks for this great Gem.
For an expired link I am seeing a strange error that I have hard time understanding how to fix it.
The error happens in the call to warden
I tried this but still getting the same error
The text was updated successfully, but these errors were encountered: