upd: config.modules (added signup + password update into config) | TODO: implement body
This commit is contained in:
parent
adcaf1a72f
commit
6a483539f5
|
@ -14,3 +14,4 @@ package-lock.json
|
|||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
/.gtm/
|
||||
|
|
|
@ -23,6 +23,61 @@
|
|||
"output": {
|
||||
"connected": { "description": "Vrai si connecté.", "type": "boolean" }
|
||||
}
|
||||
},
|
||||
|
||||
"POST signup": {
|
||||
"description": "Formulaire d'inscription",
|
||||
"permissions": [],
|
||||
"parameters": {
|
||||
"username": { "description": "Identifiant de l'utilisateur", "type": "varchar(3,20,alphanumeric)" },
|
||||
"mail": { "description": "Adresse mail de l'utilisateur", "type": "text" },
|
||||
"password": { "description": "Mot de passe de l'utilisateur", "type": "text" }
|
||||
},
|
||||
"output": {
|
||||
"sent": { "description": "Etat de l'inscription, VRAI si le mail de confirmation a été envoyé", "type": "boolean" }
|
||||
}
|
||||
},
|
||||
|
||||
"GET signup_token": {
|
||||
"description": "Validation de l'inscription par lien envoyé par mail",
|
||||
"permissions": [],
|
||||
"parameters": {
|
||||
"URL_0": { "description": "Token de confirmation URL", "type": "hash" }
|
||||
},
|
||||
"output": {
|
||||
"confirmed": { "description": "Etat de la validité du token", "type": "boolean" }
|
||||
}
|
||||
},
|
||||
|
||||
"POST pass": {
|
||||
"description": "Demande de nouveau mot de passe",
|
||||
"permissions": ["user"],
|
||||
"parameters": {},
|
||||
"output": {
|
||||
"sent": { "description": "Etat de la demande de nouveau mot de passe, VRAI si le mail de confirmation a été envoyé", "type": "boolean" }
|
||||
}
|
||||
},
|
||||
|
||||
"POST pass_token": {
|
||||
"description": "Changement de mot de passe",
|
||||
"permissions": [],
|
||||
"parameters": {
|
||||
"URL_0": { "description": "Token de confirmation URL", "type": "hash" }
|
||||
},
|
||||
"output": {
|
||||
"confirmed": { "description": "Etat de la validité du token", "type": "boolean" }
|
||||
}
|
||||
},
|
||||
|
||||
"POST pass_update": {
|
||||
"description": "Changement de mot de passe",
|
||||
"permissions": [],
|
||||
"parameters": {
|
||||
"password": { "description": "Nouveau mot de passe", "type": "text" }
|
||||
},
|
||||
"output": {
|
||||
"updated": { "description": "Vrai si mot de passe mis à jour", "type": "boolean" }
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue