projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
026f835
)
Fixed login username regex
author
unknown
<ajbura@gmail.com>
Wed, 28 Jul 2021 15:40:47 +0000
(21:10 +0530)
committer
unknown
<ajbura@gmail.com>
Wed, 28 Jul 2021 15:40:47 +0000
(21:10 +0530)
src/app/templates/auth/Auth.jsx
patch
|
blob
|
history
diff --git
a/src/app/templates/auth/Auth.jsx
b/src/app/templates/auth/Auth.jsx
index 2be50fc9adb8a74c81afc0aa1ad6cb15b5c3df80..cd287e299c74e3198b0a0a5776a31d3697d6f51c 100644
(file)
--- a/
src/app/templates/auth/Auth.jsx
+++ b/
src/app/templates/auth/Auth.jsx
@@
-13,7
+13,7
@@
import Spinner from '../../atoms/spinner/Spinner';
import CinnySvg from '../../../../public/res/svg/cinny.svg';
-const USERNAME_REGEX = /^[a-z0-9_
-
]+$/;
+const USERNAME_REGEX = /^[a-z0-9_
\-.=/
]+$/;
const BAD_USERNAME_ERROR = 'Username must contain only lowercase letters, numbers, dashes and underscores.';
const PASSWORD_REGEX = /.+/;