I want to use this gem for a model that need subdomain in addition of email to authenticate. This allow me to isolate customer bases.
Can i tell to devise-passwordless to include an additional parameters required to authenticate when we send the magic link ? Is there a way to handle my case with this gem ?
Thanks for your response.
EDIT: I edited the generated magic_link by hand to add an subdomain parameters and it works ! Now, i need to found a way to add this parameters to magic_link url properly, not by hand.
EDIT 2: I found that i can add my subdomain parameter directly in the mail template here:
<p>
<%= link_to "Log in to my account", send("#{@scope_name.to_s.pluralize}_magic_link_url", Hash[@scope_name, {email: @resource.email, token: @token, subdomain: @resource.subdomain, remember_me: @remember_me}]) %>
</p>
So now it's working with subdomain parameter, perfect :) ! I close the issue !
Hi !
I want to use this gem for a model that need subdomain in addition of email to authenticate. This allow me to isolate customer bases.
Can i tell to devise-passwordless to include an additional parameters required to authenticate when we send the magic link ? Is there a way to handle my case with this gem ?
Thanks for your response.
EDIT: I edited the generated magic_link by hand to add an subdomain parameters and it works ! Now, i need to found a way to add this parameters to magic_link url properly, not by hand.
EDIT 2: I found that i can add my subdomain parameter directly in the mail template here:
So now it's working with subdomain parameter, perfect :) ! I close the issue !