JeevanisM Posted November 7, 2019 Share Posted November 7, 2019 Hello all, I just started use this amazing module Login/Register I want to know whether its possible to disable the Email validation sending link to the registered user. For atleast test purpose ? because I develop on LocalHost with no internet, and these email things wont work in localhost, but I need to continue with development test cases. So is there any option to turn off this email validation ? thank you Link to comment Share on other sites More sharing options...
BitPoet Posted November 7, 2019 Share Posted November 7, 2019 If you plan to go live with validation email enabled anyway, it would also make sense to use a dummy SMTP server like FakeSMTP. That way, no mail is actually sent out but you have an instant preview, can save all mails to files, view those in your mail application and test the validation links inside. 6 Link to comment Share on other sites More sharing options...
szabesz Posted November 7, 2019 Share Posted November 7, 2019 1 hour ago, BitPoet said: dummy SMTP server like FakeSMTP. Or just use Tracy Debugger's (by @adrian) Mail Interceptor feature: https://adrianbj.github.io/TracyDebugger/#/debug-bar?id=mail-interceptor I always rely on it, it has never let me down so far ? 7 Link to comment Share on other sites More sharing options...
JeevanisM Posted November 10, 2019 Author Share Posted November 10, 2019 On 11/7/2019 at 2:12 PM, BitPoet said: If you plan to go live with validation email enabled anyway, it would also make sense to use a dummy SMTP server like FakeSMTP. That way, no mail is actually sent out but you have an instant preview, can save all mails to files, view those in your mail application and test the validation links inside. FakeSMTP is not catching my localhost SMTP messages. I tried port 25 and 2525 Link to comment Share on other sites More sharing options...
BitPoet Posted November 11, 2019 Share Posted November 11, 2019 On 11/10/2019 at 2:06 PM, JeevanisM said: FakeSMTP is not catching my localhost SMTP messages. I tried port 25 and 2525 Did you adapt the SMTP settings in php.ini? It might be configured to use sendmail by default. 1 Link to comment Share on other sites More sharing options...
JeevanisM Posted November 20, 2019 Author Share Posted November 20, 2019 On 11/11/2019 at 9:40 PM, BitPoet said: Did you adapt the SMTP settings in php.ini? It might be configured to use sendmail by default. I am not sure about the php.ini settings in my shared hosting. One more query, can I just disable this verification link sending to registrant email feature ? can I just proceed and complete the registration with out that step ? Link to comment Share on other sites More sharing options...
horst Posted November 20, 2019 Share Posted November 20, 2019 1 hour ago, JeevanisM said: I am not sure about the php.ini settings in my shared hosting. phpinfo() will shed some light. ? Link to comment Share on other sites More sharing options...
JeevanisM Posted May 10, 2020 Author Share Posted May 10, 2020 I am somehow made bypass for this purpose protected function createConfirmationCode() { $pw = new Password(); //$code = $pw->randomBase64String(40);// to by pass the email validation send step $code = 426; $this->wire('session')->setFor($this, 'confirm_code', $code); return $code; } just added a fixed static value as code, instead sending this to email protected function ___processConfirmation() { $input = $this->wire('input'); $session = $this->wire('session'); $users = $this->wire('users'); /// $code = $input->get('register_confirm');/// to bypass the send confirmation code to email step $code = 414; // a static number to verify I know this is ugly and defeat the security purpose but for the purview of the project, this is ok. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now