Project

General

Profile

Actions

Bug #4028

closed
MG BD

AuthWidget resets to untranslated template after Disabled user registration+login

Bug #4028: AuthWidget resets to untranslated template after Disabled user registration+login

Added by Marco Gulino over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
04/30/2015
Due date:
% Done:

0%

Estimated time:

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

KD Updated by Koen Deforche over 11 years ago Actions #1

  • Assignee set to Or Barak

KD Updated by Koen Deforche over 11 years ago Actions #2

  • Assignee changed from Or Barak to Benoit Daccache

BD Updated by Benoit Daccache over 11 years ago Actions #3

  • 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;

KD Updated by Koen Deforche almost 11 years ago Actions #4

  • Status changed from Resolved to Closed

KD Updated by Koen Deforche almost 11 years ago Actions #5

  • Target version set to 3.3.5
Actions

Also available in: PDF Atom