Guranteed somebody will paste the verification link and not the token, especially before all the translations are completed. But even then...
This commit is contained in:
@@ -8,7 +8,7 @@ class Email_validation extends \Zotlabs\Web\Controller {
|
||||
function post() {
|
||||
|
||||
if($_POST['token']) {
|
||||
if(! account_approve(trim($_POST['token']))) {
|
||||
if(! account_approve(trim(basename($_POST['token'])))) {
|
||||
notice('Token verification failed.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user