Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

where is email validation code in user registration?

edited August 2014 in Vanilla 2.0 - 2.8

i check RegisterApproval(),RegisterBasic(),RegisterCaptcha(),RegisterInvitation() method on class.entrycontroller.php file

here their common code

         $this->UserModel->Validation->ApplyRule('Name', 'Username', $this->UsernameError);
         $this->UserModel->Validation->ApplyRule('TermsOfService', 'Required', T('You must agree to the terms of service.'));
         $this->UserModel->Validation->ApplyRule('Password', 'Required');
         $this->UserModel->Validation->ApplyRule('Password', 'Match');
         $this->UserModel->Validation->ApplyRule('DiscoveryText', 'Required', 'Tell us why you want to join!');

where is code for validate email filed?

is it validate automatically calling $this->AddRule('Email', 'function:ValidateEmail'); function :\


This discussion has been closed.