mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-21 15:21:30 +02:00
Add method 'registerWithUniqueUsername'
This commit is contained in:
@@ -105,6 +105,8 @@ catch (\Delight\Auth\TooManyRequestsException $e) {
|
||||
|
||||
The username in the third parameter is optional. You can pass `null` here if you don't want to manage usernames.
|
||||
|
||||
If you want to enforce unique usernames, on the other hand, simply call `registerWithUniqueUsername` instead of `register`, and be prepared to catch the `DuplicateUsernameException`, if necessary.
|
||||
|
||||
For email verification, you should build an URL with the selector and token and send it to the user, e.g.:
|
||||
|
||||
```php
|
||||
|
Reference in New Issue
Block a user