Replies: 2 comments 2 replies
-
You can set |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can override account_from_login do |login|
# handle the case when login parameter is a username
unless login.include?("@")
login = db[:accounts].where(username: login).get(:email)
end
super(login)
end |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering how I would go about allowing rodauth to use either an email or a username within the accounts table for features like login and forgot password.
Beta Was this translation helpful? Give feedback.
All reactions