Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install: Code reformat, file checks, fixes etc
- Loading branch information
1 parent
ca7f40b
commit a6cc4ef
Showing
11 changed files
with
1,061 additions
and
707 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
/** | ||
* Override the Service_User_Record class so we can override userEmailExists() | ||
* to not require database access. | ||
*/ | ||
class ServicesValidateUserRecord extends Services_User_Record | ||
{ | ||
/** | ||
* @param string $user | ||
* | ||
* @return Dto_FormResult | ||
*/ | ||
public function validateUserEmailExists($user) | ||
{ | ||
$result = new Dto_FormResult(); | ||
|
||
if (($user['mail'] == 'john@example.com') || ($user['mail'] == 'spotwebadmin@example.com')) { | ||
$result->addError(_('Mailaddress is already in use')); | ||
} | ||
|
||
return $result; | ||
} | ||
} |
Oops, something went wrong.