����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.169 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/builderbox/./././www/common/Auth/Validators/ |
Upload File : |
<?php namespace Common\Auth\Validators;
use App;
use App\User;
use Common\Settings\Settings;
class EmailVerifiedValidator {
/**
* Check if user with specified email has verified his email address.
*
* @param string $attribute
* @param string $value
* @param array $parameters
* @return bool
*/
public function validate($attribute, $value, $parameters) {
$settings = App::make(Settings::class);
//don't need to validate email, bail
if ( ! $settings->get('require_email_confirmation')) return true;
//if email address is not taken yet, bail
if ( ! $user = User::where('email', $value)->first()) return true;
//check if specified email is verified
/** @var User $user */
return (bool) $user->hasVerifiedEmail();
}
}