Project

General

Profile

Actions

Bug #4097

closed

Auth::Login::changed() emitted wrongly

Added by Stefan Arndt almost 9 years ago. Updated over 8 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.)

Actions #1

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

Actions #2

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
Actions #3

Updated by Koen Deforche over 8 years ago

  • Target version set to 3.3.5
Actions

Also available in: Atom PDF