1
0
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:
Marco
2017-02-15 17:19:16 +01:00
parent 4268e3fcd5
commit dac2850aba
2 changed files with 32 additions and 0 deletions

View File

@@ -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