feat: simplified the signup

This commit is contained in:
silver 2023-07-30 02:50:13 +01:00
parent 970e566dea
commit 63b59432a3
7 changed files with 136 additions and 313 deletions

View file

@ -34,38 +34,22 @@ Changing ``userPassword`` requires the existing password in teh apssword field a
```json
{
"auth" : "Authcode from the email",
"user" : "username the user wants",
"mail" : "An email account that matches what is on wolves",
"name_first": "Firstname",
"name_second": "Surname"
"pass" : "password teh user wants"
}
```
Username taken:
Username taken:
```json
{"result": "error", "error": "username not available"}
```
Email used:
Invalid Auth:
```json
{"result": "error", "error": "email in use"}
{"result": "error", "error": "Invalid auth"}
```
### POST /ldap/new/verify
```json
{
"auth_code": "Auth code that got send in the email",
"password": "Password the user wants to use"
}
```
Auth code non existent:
```json
{"result": "error"}
```
## Responses
Generic responses which is used unless otherwise specified above.