Hi @toothdoc, can you please include the code that displays and handles your logins?
My bet is that on the first time, it sets something that works. Then, on the second time, it looks for that same value, and doesn’t handle it properly.
You’re welcome, and thanks for posting some more code!
Which function handles the login, if they already signed up for an account?
Also, have you stepped through your code to see where the problem lies? Perhaps, it hits the default case, and simply breaks.
default:
break
I suggest placing break points in the authorizationController method as well as your method that handles people that already logged in. This way you can see if your application follows your expected logic, if it goes down the paths you expect it to follow. Also, you might also want to add print statements in your other function that handles already logged in people.
Otherwise, honestly, this seems a bit above my head