$auth->createChallenge()
Creates an authentication challenge (one-time auth code)
Parameters
Name | Type | Default | Description |
---|---|---|---|
$email * | string |
– | |
$long | bool |
false |
If true , a long session will be created |
$mode | string |
'login' |
Purpose of the code |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\LogicException |
If there is no suitable authentication challenge (only in debug mode) |
Kirby\Exception\NotFoundException |
If the user does not exist (only in debug mode) |
Kirby\Exception\PermissionException |
If the rate limit is exceeded |