POST ./auth/register

It is used to register a user.

Pentru intent link campurile marcate cu y* nu mai sunt necesare.

POST parameters

NameValue TypeValidationDetails
intentstringRequiredWill use auth or link with the intent to make the call.
accessCodeintRequiredUser's access code.
uaUserNameinty*n/aUser name.
uaPasswordinty*requiredmin_length[5]; User's password;
uaPassword2inty*requiredmin_length[5]; Password confirmation; Should match with uaNewPassword;
chIDinty*requiredchallenge ID
chResponsestringy*requiredChallenge response
uaNewsletterintOptionalValue [0,1]; 1 = if user wants to receive newsletters; 0 = if user does not want to receive newsletters.
uaTosintRequiredValue [0,1]; 1 = if the user acceped the terms and condition; 0 = if not
uaPrivacyintRequiredValue [0,1]; 1 = if the user agrees with the privacy policy; 0 = if not
epPrenumestringRequiredIt is mandatory if the user is a parent; Parent first name.
epNumestringRequiredIt is mandatory if the user is a parent; Parent second name.

Validation

Error FieldError CodeError Message
accessCode101Invalid code or already used.
chID102chID or chResponse already used or invalid or it doesn't exist.