feat: simplified the signup
This commit is contained in:
parent
970e566dea
commit
63b59432a3
7 changed files with 136 additions and 313 deletions
26
README.md
26
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue