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.
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