I’m doing various testing by logging into different user accounts which have different roles to make sure permissions are working and a lot of times (not always), I enter the login details, click login and it just wipes the email and password field (no incorrect details message). Once I enter the login details again it logs in fine.
So for context I have a ‘Create new user’ form setup so that certain users can add new users (didn’t use a regular form as this was then logging the user who added the new user in as that new user), this form auto sets the user’s password to “temppassword” - I also have a True/False record for each user “Has temp password” where True is set each time a new user is added via this ^ method.
Screenshot
Log In
Link Login Logic - this is a page setup which directs the user to a page based on their Role only IF the user’s “Has temp password” record is FALSE
Link Set My Password - This links the user to a modal screen to force them to update their password and is set to only link to the page IF the user’s “Has temp password” record is TRUE. After setting a new password, their “Has temp password” record sets to FALSE.
As Victor said, it seems you need to create an interim screen rather than put the logic in on login and put the conditionals on that. Here’s how mine looks.
Also, make sure you have your user collection permissions set to everyone if you’re allowing another user to add a new user, this also caused issues until I changed the email and password (and any other settings updated by another user) to everyone.