Forward porting email authentication message on account activation.

This commit is contained in:
Colin Kuskie 2008-12-29 22:11:08 +00:00
parent 8b5f0ea4d8
commit 398ea7cb9d
3 changed files with 14 additions and 3 deletions

View file

@ -16,6 +16,7 @@
- fixed #9374: Subscription Asset: Redeem subscription template not documented, or user selectable
- fixed #9366: Gallery: Missing i18n
- fixed #9367: Gallery: Errors in templates
- fixed #9352: Account activation message MIA
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

View file

@ -1211,13 +1211,17 @@ sub resetExpiredPasswordSave {
#-------------------------------------------------------------------
sub validateEmail {
my $self = shift;
my ($userId) = $self->session->db->quickArray("select userId from authentication where fieldData=? and fieldName='emailValidationKey' and authMethod='WebGUI'", [$self->session->form->process("key")]);
my $session = $self->session;
my ($userId) = $session->db->quickArray("select userId from authentication where fieldData=? and fieldName='emailValidationKey' and authMethod='WebGUI'", [$session->form->process("key")]);
my $i18n = WebGUI::International->new($session, 'AuthWebGUI');
my $message = '';
if (defined $userId) {
my $u = WebGUI::User->new($self->session,$userId);
my $u = WebGUI::User->new($session,$userId);
$u->status("Active");
$self->session->db->write("DELETE FROM authentication WHERE userId = ? AND fieldName = 'emailValidationKey'", [$userId]);
$message = $i18n->get('email validation confirmed','AuthWebGUI');
}
return $self->displayLogin;
return $self->displayLogin($message);
}

View file

@ -107,6 +107,12 @@ our $I18N = {
lastUpdated => 1078852836
},
'email validation confirmed' => {
message => q|Thank you for activating your account. You may now log in with your username and password.|,
context => q|Message displayed to the user after they validate their email address.|,
lastUpdated => 1230588145,
},
'display account template title' => {
message => q|WebGUI Authentication Display Account Template|,
lastUpdated => 1078852836