Skip to content

Commit

Permalink
Install: Code reformat, file checks, fixes etc
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyDijkstra committed Nov 6, 2016
1 parent ca7f40b commit a6cc4ef
Show file tree
Hide file tree
Showing 11 changed files with 1,061 additions and 707 deletions.
656 changes: 80 additions & 576 deletions install.php

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions lib/ServicesValidateUserRecord.php
@@ -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;
}
}

0 comments on commit a6cc4ef

Please sign in to comment.