Can you login with a username - Log User In

I currently user the “Sign User Up” feature for my sign-up page. I also have a login page that uses the “log user in” element. The log user-in feature makes the user log in using an email and password. Is there a way to use the same elements to make it so that users can log in using a username and password rather than an email and password?

If not is there a way to replicate the log-in flow where users have database saved passwords and usernames which when entered logs the user in? The user would need to be logged in since only they should have access to certain sites and they should be logged out when they click a logout button.

On signup when they pick a username make the email field

{{username}}@yourdomain.com

When they go to login have them input their username and pass

On your action you pass
Username input value@yourdomain.com

1 Like

Sorry, im not that good with bubble. Im not sure how exactly I would do that. You are saying to allow the users to input the username field as a regular field such as “johndoe” and then where would @yourdomain.com go? in the initial content section of the input field?

When passing in the value of the username (the one the user must have entered in the input box) on your workflow, append it with “@yourdomain.com”.
That way, bubble sees it as a valid email address.