fix: Email validate codes aren't removed after use

This commit is contained in:
Graham Knop 2007-07-02 17:21:08 +00:00
parent 4f0be1e871
commit 8a88823682
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@
http://www.webgui.org/bugs/tracker/diskusage-will-return--1-if-value-too-large
- fix: Importing a package logs 'Consult your database tables for corruption' errors (perlDreamer Consulting, LLC)
http://www.webgui.org/bugs/tracker/importing-a-package-logs-consult-your-database-tables-for-corruption-errors
- fix: Email validate codes aren't removed after use
7.3.19
- Fixed a formatting problem in the workflow editor screen.

View file

@ -770,7 +770,7 @@ sub validateEmail {
if (defined $userId) {
my $u = WebGUI::User->new($self->session,$userId);
$u->status("Active");
$self->session->db->write("DELETE FROM authentication WHERE userId = ? AND fieldName = 'emailValidationKey'");
$self->session->db->write("DELETE FROM authentication WHERE userId = ? AND fieldName = 'emailValidationKey'", [$userId]);
}
return $self->displayLogin;
}