1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-30 21:00:13 +02:00

Clarify parameter to 'Auth#register' to omit to disable verification

This commit is contained in:
Marco
2022-01-12 14:55:18 +01:00
parent 0d240e4322
commit 79cc249318

View File

@@ -178,7 +178,7 @@ For email verification, you should build an URL with the selector and token and
$url = 'https://www.example.com/verify_email?selector=' . \urlencode($selector) . '&token=' . \urlencode($token);
```
If you dont want to perform email verification, just omit the last parameter to `Auth#register`. The new user will be active immediately, then.
If you dont want to perform email verification, just omit the last parameter to `Auth#register`, i.e. the [anonymous function or closure](https://www.php.net/manual/functions.anonymous.php). The new user will be active immediately, then.
Need to store additional user information? Read on [here](#additional-user-information).