MantisBT - v3.2 Release
View Issue Details
0000881v3.2 ReleaseUser Adminpublic2011-07-13 05:202014-07-16 21:28
Reporterbbalegere 
Assigned Tocaseydk 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version3.2Fixed in Version3.2 
Summary0000881: Email is not validated in while creating users
DescriptionWhile creating users the email id is not validated.
Anything with a length of more than 4 is accepted.
So i have added an extra function to validate email id.
TagsNo tags attached.
Attached Filesdiff emailvalid.diff (1,213) 1969-12-31 16:00
https://bugs.web2project.net/file_download.php?file_id=240&type=bug

Notes
(0002026)
caseydk   
2011-07-14 23:01   
This is a good implementation for the front end validation, we also need to hook an email validity check into the CUser->check() method using w2p_check_email() in includes/main_functions.php
(0002034)
bbalegere   
2011-07-15 07:11   
w2p_check_email() can be updated with the validation code from here. http://pear.php.net/manual/en/package.validate.validate.email.php
(0002035)
caseydk   
2011-07-15 07:31   
While that would work, it introduces a new dependency of that PEAR module. Instead, we'll use the filter_var function with FILTER_VALIDATE_EMAIL available in PHP 5.2.0+

Docs: http://www.php.net/manual/en/function.filter-var.php
(0003368)
caseydk   
2014-05-20 20:34   
Resolved in development:
https://github.com/web2project/web2project/commit/dff74ec2571b7deae7f36f53968f4ce024814098

Issue History
2011-07-13 05:20bbalegereNew Issue
2011-07-13 05:20bbalegereFile Added: emailvalid.diff
2011-07-14 23:01caseydkNote Added: 0002026
2011-07-14 23:01caseydkStatusnew => acknowledged
2011-07-14 23:02caseydkSeveritymajor => minor
2011-07-14 23:02caseydkProjectv2.3 Release (Closed) => Pending Requests
2011-07-15 07:11bbalegereNote Added: 0002034
2011-07-15 07:31caseydkNote Added: 0002035
2014-05-20 20:32caseydkProjectPending Requests => v3.2 Release
2014-05-20 20:34caseydkNote Added: 0003368
2014-05-20 20:34caseydkStatusacknowledged => resolved
2014-05-20 20:34caseydkResolutionopen => fixed
2014-05-20 20:34caseydkAssigned To => caseydk
2014-05-22 19:52caseydkCategoryGeneral => User Admin
2014-05-22 19:52caseydkProduct Version2.3 =>
2014-06-10 22:09caseydkTarget Version => 3.2
2014-07-16 21:26caseydkFixed in Version => 3.2
2014-07-16 21:28caseydkStatusresolved => closed