Login With User ID (not email)

Hi!

I am creating Users for my app using a randomly generated email, which is otherwise not used/visible.

I am not able to use the User actions now, though.

So when I want to “log a User in” (I’m trying to do so based on a username), I can’t, because Bubble is expecting an email.

Anyone got any ideas?

Thank you!

Are you able to pull in the users email from the database?

I’m trying to figure out how to use an input to read whatever is entered in the “user id” field and then display the email corresponding to that user id (in the same row as the user id) but I can’t see a way to do it :frowning:

1 Like

hi,
you can create login workflow with using
"email = ‘randam id’ :append @test.com

The " email type" judges if the string have “@”.
So, you can generate vertual emai like string with using “:append” command

1 Like

Hello @KeitaroNakata. Pls do me a favor: I want to let user to sign up and login in my app with his phone (not with email) and following what you suggested in this topic, I created signup workflow like this:
image
then I previewed it and enter my phone but it did not work (the border of email input is still red) like this:
image
Kindly let me know what I have to do?
Thank you and hope to get your feedback soon.
Kind regards,
P.N.Quang

Hi, @ngocquanghn
I think you need change the input type.
I guess you set the innput as email format.
Try change to text or text(number only)

Thank you alot. I did it!
By the way, I want users signup/login with exact his/her mobile phone number. Any way to verify that the number he/she entered are right phone number or just a string of numbers?

Kind regards,

Hi.
I’ve never tried, but you can do it if you use twilio plugin