1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

password restore dialog

This commit is contained in:
Fedor Katurov 2019-11-25 16:52:01 +07:00
parent 0cfc6357b9
commit 078c531e93
14 changed files with 270 additions and 33 deletions

View file

@ -8,6 +8,7 @@ import { LoadingDialog } from '~/containers/dialogs/LoadingDialog';
import { TestDialog } from '~/containers/dialogs/TestDialog';
import { ProfileDialog } from '~/containers/dialogs/ProfileDialog';
import { RestoreRequestDialog } from '~/containers/dialogs/RestoreRequestDialog';
import { RestorePasswordDialog } from '~/containers/dialogs/RestorePasswordDialog';
import { DIALOGS } from '~/redux/modal/constants';
export const DIALOG_CONTENT = {
@ -20,6 +21,7 @@ export const DIALOG_CONTENT = {
[DIALOGS.TEST]: TestDialog,
[DIALOGS.PROFILE]: ProfileDialog,
[DIALOGS.RESTORE_REQUEST]: RestoreRequestDialog,
[DIALOGS.RESTORE_PASSWORD]: RestorePasswordDialog,
};
export const NODE_EDITOR_DIALOGS = {

View file

@ -15,6 +15,7 @@ export const ERRORS = {
USER_EXIST: 'User_Exist',
INCORRECT_PASSWORD: 'Incorrect_Password',
CODE_IS_INVALID: 'Code_Is_Invalid',
DOESNT_MATCH: 'Doesnt_Match',
};
export const ERROR_LITERAL = {
@ -34,4 +35,5 @@ export const ERROR_LITERAL = {
[ERRORS.USER_EXIST]: 'Такой пользователь уже существует',
[ERRORS.INCORRECT_PASSWORD]: 'Неправильный пароль',
[ERRORS.CODE_IS_INVALID]: 'Код не существует или устарел',
[ERRORS.DOESNT_MATCH]: 'Пароли не совпадают',
};