Project

General

Profile

Actions

Bug #4028

closed

AuthWidget resets to untranslated template after Disabled user registration+login

Added by Marco Gulino over 9 years ago. Updated about 9 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

Actions #1

Updated by Koen Deforche over 9 years ago

  • Assignee set to Or Barak
Actions #2

Updated by Koen Deforche over 9 years ago

  • Assignee changed from Or Barak to Benoit Daccache
Actions #3

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;

Actions #4

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Koen Deforche about 9 years ago

  • Target version set to 3.3.5
Actions

Also available in: Atom PDF