Fix a bug where Show Message on Login didn't work with anonymous
registration for WebGUI auth. Added POD to the Auth createAccountSave method to detail that what it returns is important.
This commit is contained in:
parent
58c81ede6d
commit
3e318493c9
3 changed files with 25 additions and 24 deletions
|
|
@ -226,7 +226,6 @@ sub createAccountSave {
|
|||
$properties->{ passwordLastUpdated } = $session->datetime->time();
|
||||
$properties->{ passwordTimeout } = $setting->get("webguiPasswordTimeout");
|
||||
$properties->{ status } = 'Deactivated' if ($setting->get("webguiValidateEmail"));
|
||||
$self->SUPER::createAccountSave($username,$properties,$password,$profile);
|
||||
|
||||
# Send validation e-mail if required
|
||||
if ($setting->get("webguiValidateEmail")) {
|
||||
|
|
@ -251,7 +250,7 @@ sub createAccountSave {
|
|||
$self->logout;
|
||||
return $self->displayLogin($i18n->get('check email for validation','AuthWebGUI'));
|
||||
}
|
||||
return undef;
|
||||
return $self->SUPER::createAccountSave($username,$properties,$password,$profile);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue