mirror of
https://github.com/opensupports/opensupports.git
synced 2025-05-03 06:10:56 +02:00
15 lines
253 B
PHP
15 lines
253 B
PHP
<?php
|
|
|
|
namespace CustomValidations;
|
|
|
|
use Respect\Validation\Rules\AbstractRule;
|
|
|
|
class StaffEmail extends AbstractRule {
|
|
|
|
public function validate($email) {
|
|
$user = \Staff::getUser($email, 'email');
|
|
|
|
return !$user->isNull();
|
|
}
|
|
}
|