mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 14:17:26 +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 InvalidPasswordException if the password was invalid
|
||||||
* @throws UserAlreadyExistsException if a user with the specified email address already exists
|
* @throws UserAlreadyExistsException if a user with the specified email address already exists
|
||||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||||
|
*
|
||||||
|
* @see confirmEmail
|
||||||
|
* @see confirmEmailAndSignIn
|
||||||
*/
|
*/
|
||||||
public function register($email, $password, $username = null, callable $callback = null) {
|
public function register($email, $password, $username = null, callable $callback = null) {
|
||||||
return $this->createUserInternal(false, $email, $password, $username, $callback);
|
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 UserAlreadyExistsException if a user with the specified email address already exists
|
||||||
* @throws DuplicateUsernameException if the specified username wasn't unique
|
* @throws DuplicateUsernameException if the specified username wasn't unique
|
||||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||||
|
*
|
||||||
|
* @see confirmEmail
|
||||||
|
* @see confirmEmailAndSignIn
|
||||||
*/
|
*/
|
||||||
public function registerWithUniqueUsername($email, $password, $username = null, callable $callback = null) {
|
public function registerWithUniqueUsername($email, $password, $username = null, callable $callback = null) {
|
||||||
return $this->createUserInternal(true, $email, $password, $username, $callback);
|
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 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 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)
|
* @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) {
|
protected function createUserInternal($requireUniqueUsername, $email, $password, $username = null, callable $callback = null) {
|
||||||
$this->throttle(self::THROTTLE_ACTION_REGISTER);
|
$this->throttle(self::THROTTLE_ACTION_REGISTER);
|
||||||
|
Reference in New Issue
Block a user