[J] Email Check

[J] Email Check 1.2.4

No permission to download
Is there any way to add exceptions when it comes to email addresses? It seems everyone with a protonmail account is currently blocked.
As i checked validator.pizza having no issues with protonmail so you can simply login to ipqualityscore and add an exception for email under setting and account management tab.
 
I'm getting loads of these now:
ErrorException: Undefined index: disposable - library/Justin/EmailCheck/DataWriter/User.php:31
Generated By: Unknown Account, Tuesday at 10:59 PM
Stack Trace
#0 /library/Justin/EmailCheck/DataWriter/User.php(31): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 31, Array)
#1 /library/MiladRegmail/DataWriter/User.php(71): Justin_EmailCheck_DataWriter_User->_verifyEmail('xxx...')
#2 /library/XenForo/DataWriter.php(995): MiladRegmail_DataWriter_User->_verifyEmail('xxx...', Object(SV_DeadlockAvoidance_XenForo_DataWriter_User), 'email', Array)
#3 /library/XenForo/DataWriter.php(725): XenForo_DataWriter->_runVerificationCallback(Array, xxx...', Array, 'email')
#4 /library/XenForo/DataWriter.php(643): XenForo_DataWriter->_isFieldValueValid('email', Array, xxx...', Array)
#5 /library/XenForo/ControllerPublic/Register.php(67): XenForo_DataWriter->set('email', ‘xxx...')
#6 /library/XenForo/FrontController.php(369): XenForo_ControllerPublic_Register->actionIndex()
#7 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(35) "https://my-forum.com/login/login"
["_GET"] => array(1) {
["/login/login"] => string(0) ""
}
["_POST"] => array(5) {
["login"] => string(25) "xxx@gmail.com"
["register"] => string(1) "1"
["cookie_check"] => string(1) "1"
["_xfToken"] => string(8) "********"
["redirect"] => string(31) "https://my-forum.com/search/"
}
}

ErrorException: Undefined index: mx - library/Justin/EmailCheck/DataWriter/User.php:31
Generated By: Unknown Account, Tuesday at 10:59 PM
Stack Trace
#0 /library/Justin/EmailCheck/DataWriter/User.php(31): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 31, Array)
#1 /library/MiladRegmail/DataWriter/User.php(71): Justin_EmailCheck_DataWriter_User->_verifyEmail('Xxx...')
#2 /library/XenForo/DataWriter.php(995): MiladRegmail_DataWriter_User->_verifyEmail('Xxx...', Object(SV_DeadlockAvoidance_XenForo_DataWriter_User), 'email', Array)
#3 /library/XenForo/DataWriter.php(725): XenForo_DataWriter->_runVerificationCallback(Array, 'Xxx...', Array, 'email')
#4 /library/XenForo/DataWriter.php(643): XenForo_DataWriter->_isFieldValueValid('email', Array, 'Xxx...', Array)
#5 /library/XenForo/ControllerPublic/Register.php(67): XenForo_DataWriter->set('email', 'Xxx...')
#6 /library/XenForo/FrontController.php(369): XenForo_ControllerPublic_Register->actionIndex()
#7 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(35) "https://my-forum.com/login/login"
["_GET"] => array(1) {
["/login/login"] => string(0) ""
}
["_POST"] => array(5) {
["login"] => string(25) "Xxx@gmail.com"
["register"] => string(1) "1"
["cookie_check"] => string(1) "1"
["_xfToken"] => string(8) "********"
["redirect"] => string(31) "https://my-forum.com/search/"
}
}
 
Work this addon now with v2.1.8 patch 2?

I get the following error with a non-existent email:

  • GuzzleHttp\Exception\ServerException: Valdator.pizza connection error: Server error: GET https://www.validator.pizza/email/test@byom.de resulted in a 523 Origin Unreachable response: <html> <head><title>523 Origin Unreachable</title></head> <body bgcolor="white"> <center><h1>523 Origin Unreachable</ (truncated...)
  • src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 src/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('get', 'https://www.val...', Array)
#11 src/addons/Justin/EmailCheck/XF/Entity/User.php(28): GuzzleHttp\Client->__call('get', Array)
#12 src/XF/Mvc/Entity/Entity.php(768): Justin\EmailCheck\XF\Entity\User->verifyEmail('test@byom.de', 'email', 5, Array)
#13 src/XF/Mvc/Entity/Entity.php(613): XF\Mvc\Entity\Entity->_verifyValueCustom('test@byom.de', 'email', 5, Array)
#14 src/XF/Mvc/Entity/Entity.php(548): XF\Mvc\Entity\Entity->set('email', 'test@byom.de')
#15 src/XF/Service/User/Registration.php(54): XF\Mvc\Entity\Entity->__set('email', 'test@byom.de')
#16 src/XF/Service/User/Registration.php(107): XF\Service\User\Registration->setMapped(Array)
#17 src/XF/Pub/Controller/Register.php(448): XF\Service\User\Registration->setFromInput(Array)
#18 src/XF/Pub/Controller/Register.php(411): XF\Pub\Controller\Register->setupRegistration(Array)
#19 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#20 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(Justin\EmailCheck\XF\Pub\Controller\Register), NULL)
#21 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Justin\EmailCheck\XF\Pub\Controller\Register), NULL)
#22 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#23 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#24 src/XF.php(391): XF\App->run()
#25 index.php(20): XF::runApp('XF\\Pub\\App')
#26 {main}
 
Last edited:
"This is a simple addon that check the emails entered by users during registration"
... and then does what?
 
Block Registration via Disposable E-mail
Informs the user they are using an un-accepted disposable? Allows them to enter another? Uses AJAX for real-time after entering in email, or only on submission of form?
 
It's a free addon. Feel free to test it out and see what it does for you.

1*8xraf6eyaXh-myNXOXkqLA.jpeg

:ROFLMAO:

Thanks, I'll wait and see if anyone else answers on the functionality.
 
Informs the user they are using an un-accepted disposable? Allows them to enter another? Uses AJAX for real-time after entering in email, or only on submission of form?
When users submit form it checks whether the email is valid or not. If it's not an valid email it returns an error modal showing "please enter an valid email".

It's not ajax/realtime It checks email only after submission of form.
 
When users submit form it checks whether the email is valid or not. If it's not an valid email it returns an error modal showing "please enter an valid email".

It's not ajax/realtime It checks email only after submission of form.

Thanks for clarifying that.
 
Top Bottom