SubmittingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/elenacarino-max/mas-climapp/llms.txt
Use this file to discover all available pages before exploring further.
POST /registro_usuario creates a new user account in ClimApp’s JSON-backed user store. The server validates the email format, enforces a minimum password length, checks that the two password fields match, and verifies that the email address has not already been registered. Passwords are hashed with SHA-256 before storage — the plaintext value is discarded immediately after hashing and is never written to disk.
Request
Email address for the new account. Must match the pattern
user@domain.tld. Validation is performed with the regex ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$. Must be unique — submitting an address that already exists returns an error.Desired password. Minimum 6 characters. Stored as a SHA-256 hash.
Repeat of the desired password. Must be identical to
password. The check is performed before any other validation; a mismatch returns an error immediately.Example request
Response
The endpoint always responds with an HTTP redirect. Check theLocation header and any queued flash messages to determine the outcome.
Success
- HTTP
302redirect to/login. - Flash message with category
"success":"Registro completado con éxito.".
Failure — passwords do not match
- HTTP
302redirect back to/registro_usuario(the registration form). - Flash message with category
"error":"Las contraseñas no coinciden.".
Failure — invalid email or short password
- HTTP
302redirect back to/registro_usuario. - Flash message with category
"error"containing the specific validation message, for example:"El formato del email no es válido."or"La contraseña debe tener al menos 6 caracteres.".
Failure — email already registered
- HTTP
302redirect back to/registro_usuario. - Flash message with category
"error":"Este correo ya está registrado.".
After a successful registration you are redirected to
/login but are not logged in automatically. Submit your credentials to POST /login to start a session.