Show the source device in login code mails

This commit is contained in:
Jonas Lochmann
2021-12-30 10:27:49 +01:00
parent add8787624
commit 3a59743de9
12 changed files with 190 additions and 209 deletions
+4 -1
View File
@@ -24,7 +24,8 @@ see [this JSON schema](../schema/sendmaillogincoderequest.md)
```
{
"mail": "test@timelimit.io",
"locale": "de"
"locale": "de",
"deviceAuthToken": "1234abcde"
}
```
@@ -34,6 +35,8 @@ If the request body is malformed or the mail address is invalid: HTTP status cod
If the rate limit was exceeded: HTTP status code 429 Too Many Requests
If a deviceAuthToken was sent which is invalid: HTTP status code 401 Unauthorized
If a whitelist was configured and the mail address is not within it: ``{"mailAddressNotWhitelisted": true}``
If a blacklist was configured and the mail server is within it: ``{"mailServerBlacklisted": true}``