Create a new user account
This endpoint allows you to register a new user in the MyDiary application.Request parameters
The user’s full name
The user’s email address. Must be a valid email format and unique in the system.
The user’s password. Must be at least 6 characters long.
Password confirmation. Must match the password field.
Request example
Response
Redirects to the home session page upon successful registration and automatic login
Success response
Upon successful registration, the user is automatically logged in and redirected to the home session. Status Code:302 Found
Location: /Home
Error responses
Validation error
Returned when request parameters fail validation. Status Code:422 Unprocessable Entity
Email already exists
Returned when the email is already registered in the system. Status Code:302 Found
Location: /SingIn
Session Message: email_already_exist
Validation rules
- name: Required field
- email: Required, must be a valid email format
- password: Required, minimum 6 characters
- passwordConfirm: Required, must match the password field exactly