From 096f97b6d0d66a0860ec5a9f13401a391cce7f45 Mon Sep 17 00:00:00 2001 From: dzeranov Date: Tue, 14 Sep 2021 13:48:27 +0300 Subject: [PATCH] E-mail field validator added --- cvat-ui/src/components/login-page/login-form.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cvat-ui/src/components/login-page/login-form.tsx b/cvat-ui/src/components/login-page/login-form.tsx index a134cab67810..5b8972eb2d44 100644 --- a/cvat-ui/src/components/login-page/login-form.tsx +++ b/cvat-ui/src/components/login-page/login-form.tsx @@ -25,6 +25,10 @@ function LoginFormComponent(props: Props): JSX.Element { hasFeedback name='email' rules={[ + { + type: 'email', + message: 'The input is not valid E-mail!', + }, { required: true, message: 'Please specify a email',