I’m having a weird problem. The sign-up process on my app uses the ‘create an account for someone else’ workflow. This all works well, up till the point I try to log in for the first time using the temporary password.
At this point, the log-in workflow just doesn’t run:
I have conditions on the log-in button to redirect users based on their user type (The user type is set when the user initially signs up -I’ve checked the database, and my test users all have the right user-types attached to their records).
But when I check the debugger, it shows that the conditions fail, and so the workflow doesn’t run. The reason the condition fails, is because the workflow is trying to evaluate the current user - but for some reason, this current user isn’t the user email input in the log in screen!
Instead, the debugger shows me a current user that was created a few minutes ago, no name, no user type, and a unique ID that doesn’t exist in my database. And so I imagine this is Bubble creating a ‘temporary user’.
What I don’t understand is why is Bubble trying to log in the temporary user, rather than evaluating the user attached to the email in the log-in workflow?
Does anyone know what I should be doing instead? Would appreciate any tips.