Jump to content


Photo
- - - - -

Email Verification Required allows Login w/o Verification v 3.3

emai registration

  • Please log in to reply
2 replies to this topic

#1 satellite1

satellite1

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 20 March 2016 - 11:16 PM

I have email verification set to = true, and when signing up in AVS 3.3 I can log into my account without verifying my email.

 

I do not believe that was your design intentions. It also is causing confusion to users.

 

This is verified on my domain and I did a test on:

 

http://www.supercartube.com/

 

Thanks in advance!

 

 



#2 theone

theone

    Senior Member

  • Members
  • PipPipPipPip
  • 368 posts

Posted 21 March 2016 - 07:05 PM

You may be able to login but you can't use certain features like uploading videos until your account has been verified.

 

It has been like that since AVS 2.

 

But, it's possible to modify the script to deny login without verification.

 

PM me, I can do this for you.



#3 theone

theone

    Senior Member

  • Members
  • PipPipPipPip
  • 368 posts

Posted 27 March 2016 - 05:31 PM

To prevent login for unverified users you can do the following.

 

Open login.php

 

 

Find....

$password = md5($password);

Add below...

if ($user['0']['emailverified'] == 'no') { 
	$errors[] = 'Please verify your email to login!';
} else {

Find...

VRedirect::go($_URL);
} else {
	$errors[] = $lang['login.invalid'];
}

Add below...

}