/** * Enhance function to check against duplicate emails * * @param string $user * @param string $pwd * @param string $name * @param string $mail * @param null $grps * @return bool|null|string */ public function createUser($user, $pwd, $name, $mail, $grps = null) { if ($this->getUserByEmail($mail)) { msg($this->getLang('emailduplicate'), -1); return false; } return parent::createUser($user, $pwd, $name, $mail, $grps); }
/** * Create a new User [implement only where required/possible] * * Returns false if the user already exists, null when an error * occurred and true if everything went well. * * The new user HAS TO be added to the default group by this * function! * * Set addUser capability when implemented * * @param string $user * @param string $pass * @param string $name * @param string $mail * @param null|array $grps * @return bool|null */ public function createUser($user, $pass, $name, $mail, $grps = null) { return parent::createUser($user, $pass, $name, $mail, $grps); }