Jump to content

Login/Register - disable the email validation link


JeevanisM
 Share

Recommended Posts

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

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.

  • Like 6
Link to comment
Share on other sites

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

  • 2 weeks later...
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

  • 5 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...