Project

General

Profile

Bug #4097

Auth::Login::changed() emitted wrongly

Added by Stefan Arndt over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/18/2015
Due date:
% Done:

0%

Estimated time:

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

#1

Updated by Koen Deforche over 7 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.

#2

Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed
#3

Updated by Koen Deforche about 7 years ago

  • Target version set to 3.3.5

Also available in: Atom PDF