mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 06:10:14 +02:00
Hint at related methods for email confirmation where required
This commit is contained in:
@@ -159,6 +159,9 @@ final class Auth extends UserManager {
|
||||
* @throws InvalidPasswordException if the password was invalid
|
||||
* @throws UserAlreadyExistsException if a user with the specified email address already exists
|
||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||
*
|
||||
* @see confirmEmail
|
||||
* @see confirmEmailAndSignIn
|
||||
*/
|
||||
public function register($email, $password, $username = null, callable $callback = null) {
|
||||
return $this->createUserInternal(false, $email, $password, $username, $callback);
|
||||
@@ -189,6 +192,9 @@ final class Auth extends UserManager {
|
||||
* @throws UserAlreadyExistsException if a user with the specified email address already exists
|
||||
* @throws DuplicateUsernameException if the specified username wasn't unique
|
||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||
*
|
||||
* @see confirmEmail
|
||||
* @see confirmEmailAndSignIn
|
||||
*/
|
||||
public function registerWithUniqueUsername($email, $password, $username = null, callable $callback = null) {
|
||||
return $this->createUserInternal(true, $email, $password, $username, $callback);
|
||||
|
@@ -100,6 +100,9 @@ abstract class UserManager {
|
||||
* @throws UserAlreadyExistsException if a user with the specified email address already exists
|
||||
* @throws DuplicateUsernameException if it was specified that the username must be unique while it was *not*
|
||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||
*
|
||||
* @see confirmEmail
|
||||
* @see confirmEmailAndSignIn
|
||||
*/
|
||||
protected function createUserInternal($requireUniqueUsername, $email, $password, $username = null, callable $callback = null) {
|
||||
$this->throttle(self::THROTTLE_ACTION_REGISTER);
|
||||
|
Reference in New Issue
Block a user