use BSE::Template;
use DevHelp::Date qw(dh_parse_date_sql dh_parse_time_sql);
-our $VERSION = "1.013";
+our $VERSION = "1.014";
my %actions =
(
my $saveemail;
my $email = $cgi->param('email');
+ $email =~ s/^\s+|\s+$//g;
if (defined $email && $email ne $user->{email} && $email ne '') {
if ($email !~ /.\@./) {
$errors{email} = "Email is invalid";
unless ($errors{email}) {
if ($nopassword) {
my $conf_email = $cgi->param('confirmemail');
+ $conf_email =~ s/^\s+|\s+$//g;
if ($conf_email) {
if ($conf_email eq $email) {
my $other = SiteUsers->getBy(userId=>$email);
my $nopassword = $cfg->entryBool('site users', 'nopassword', 0);
my %errors;
my $email = $cgi->param('email');
+ $email =~ s/^\s+|\s+$//g;
if (!defined $email) { # required check done later
$email = ''; # prevent undefined value warnings later
}
use base 'BSE::UI::UserCommon';
use Carp qw(confess);
-our $VERSION = "1.029";
+our $VERSION = "1.030";
use constant MAX_UNACKED_CONF_MSGS => 3;
use constant MIN_UNACKED_CONF_GAP => 2 * 24 * 60 * 60;
section => 'site user validation');
my $email = $cgi->param('email');
+ $email =~ s/^\s+|\s+$//g;
if (!defined $email or !length $email) {
$errors{email} = $msgs->(regnoemail => "Please enter an email address");
$email = ''; # prevent undefined value warnings later
}
if ($nopassword) {
my $confemail = $cgi->param('confirmemail');
+ $confemail =~ s/^\s+|\s+$//g;
if (!defined $confemail or !length $confemail) {
$errors{confirmemail} = $msgs->(regnoconfemail => "Please enter a confirmation email address");
}
}
}
my $email = $cgi->param('email');
+ $email =~ s/^\s+|\s+$//g;
my $saveemail;
if (defined $email) {
++$saveemail;