Working on 1.5.0 keycloak final version i catched a bug related to consecutive logins.
My use case was:
Configuration:
1) I've created a new realm, say "TestRealm"
2) I've created 1 role: "testRole"
3) I've created 2 users: "userTest1" and "userTest2"
4) In the role mapping tab of each user i've assigned "testRole" to both of them
5) In the credential tab of each user i've changed their pwd
Use case:
2) I insert username: userTest1
pwd: (a wrong password)
Login page displays a tooltip saying "invalid username or password"
3) Withouth any page refreshing i try to login again with second user:
username: userTest2:
pwd: (whatever right or wrong password)
Keycloak catch an exception:
The page displays: