Bug #4028
closedAuthWidget resets to untranslated template after Disabled user registration+login
0%
Description
Hello, I found this issue in Wt 3.3.4, and I've been able to reproduce it using the example in feature/auth1 by modifiying the following lines of code in model/Session.C:
- 40, 41: set both myAuthService.setEmailVerificationEnabled and myAuthService.setEmailVerificationRequired to false
- 80: add a new line: users_->setNewUserStatus(Wt::Auth::User::Disabled);
This is what happens: a new user registers, no mail verification is required, therefore is automatically logged in. But since the new user status is disabled, it should be displayed a warning message, and the user should not be allowed to login.
Instead i get back to an untranslated WTemplate representing the login widget:
??login??
??lost-password?? ??sep?? ??register??
Is there a possible workaround for this? For instance, skipping the automatic login maybe?
If after the registration I do a reload, I'm able to see the expected disabled login message.
Thanks
Marco
Updated by Koen Deforche over 9 years ago
- Assignee changed from Or Barak to Benoit Daccache
Updated by Benoit Daccache over 9 years ago
- Status changed from New to Resolved
Redirect to login view.
No message are displayed if verificationRequired is not true and account is disabled.
A message will be show only if verificationRequired is true;
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed