From 6a483539f54398cfec511d28cefcd70a4b40e9cf Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 6 Dec 2017 13:23:37 +0100 Subject: [PATCH] upd: config.modules (added signup + password update into config) | TODO: implement body --- .gitignore | 1 + config/modules.json | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/.gitignore b/.gitignore index e00c249..9ae53a5 100755 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ package-lock.json *.ntvs* *.njsproj *.sln +/.gtm/ diff --git a/config/modules.json b/config/modules.json index 5d301fa..0940e7c 100755 --- a/config/modules.json +++ b/config/modules.json @@ -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" } + } } },