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

Help with using the Phone number instead of Email #439

Closed
Azzawie opened this issue Sep 9, 2024 · 1 comment
Closed

Help with using the Phone number instead of Email #439

Azzawie opened this issue Sep 9, 2024 · 1 comment

Comments

@Azzawie
Copy link

Azzawie commented Sep 9, 2024

Sorry, but this is not an issue. It's a question.
Can I use the roadauth gem, where the user Authenticates with a phone number instead of an Email? If so, could you please provide good resources, links, or documents that explain the process or the steps?

Thanks

@jeremyevans
Copy link
Owner

Rodauth doesn't have built in support for that. It's possible by using Rodauth configuration methods, but I don't think there is an existing guide for it. You'll want something like:

login_column :phone_number
login_uses_email? false

# if using any features that send email
send_email do |email|
  # send SMS to phone number instead of emailing
end

In the future, please open a discussion instead of an issue if you are not reporting a bug.

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