Project

General

Profile

Actions

Front-Feature #518

closed

Front-Feature #517: Релиз 2

Регистрация

Added by Екатерина Захарова 10 days ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Start date:
05/21/2026
Due date:
% Done:

0%

Estimated time:
8:00 h
Spent time:

Description

урл AuthController/AuthController_signIn
{
"email": "",
"password": "NewPassword_456"
}
Вызывается при нажатии на "Зарегистрироваться"
Пароль:
IsStrongPassword({
minLength: 8,
minLowercase: 1,
minUppercase: 1,
minNumbers: 1,
minSymbols: 1,
}),
Ошибки по паролю:
import { HttpStatus } from '@nestjs/common'

export const userError = {
EMAIL_ALREADY_VERIFIED: {
error: ['Email already verified'],
},
EMAIL_VERIFICATION_PROCESS_NOT_INITIALIZED: {
error: ['Email verification process not initiated'],
},
PHONE_ALREADY_VERIFIED: {
error: ['Phone already verified'],
},
PHONE_VERIFICATION_PROCESS_NOT_INITIALIZED: {
error: ['Phone verification process not initiated'],
},
CODE_WRONG: {
error: ['Code wrong'],
},
USER_ALREADY_EXIST: {
status: HttpStatus.CONFLICT,
error: ['User already exists'],
},
USER_NOT_FOUND: {
status: HttpStatus.NOT_FOUND,
error: ['User was not found'],
},
PASSWORD_WRONG: {
status: HttpStatus.BAD_REQUEST,
error: ['Password wrong'],
},
USER_UPDATE_ERROR: {
status: HttpStatus.CONFLICT,
error: ['User update error'],
},
}
Отобразить надпись при 200, что посмотрите почту
Создать страницу успешной регистрации, с текстом ( Токен истек, пройдите заново регистрацию, или Регистрация успешно завершена, можете покинуть эту страницу)

Actions #1

Updated by Екатерина Захарова 5 days ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF