Bug #4097
closedAuth::Login::changed() emitted wrongly
0%
Description
I am using the normal Wt authentication mechanics and requiring E-Mail verification for a new user (Wt 3.3.4). Once the user registers, he can see the dialog "You need to verify your E-Mail". If he tries to login without verifying, the authentication widget shows a message like "You need to verify ..". That seem to work just fine. But in the example before, the login changed signal is emitted. The user was not logged in before and he is not afterwards, hence there should be no change event. (I can easily work around this issue, but it is non intuitive.)
Updated by Koen Deforche over 9 years ago
- Status changed from New to Resolved
Hey, that's indeed not intuitive. The reason why we emit the changed() signal is because the user was identified correctly and the state did change (from LoggedOut to DisabledLogin). If you're only considering the result of 'loggedIn()' then it does not change.
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed