Explorar o código

fix: fixed issue with registering

Kristian Vos %!s(int64=5) %!d(string=hai) anos
pai
achega
231db07af2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      frontend/validation.js

+ 1 - 0
frontend/validation.js

@@ -4,6 +4,7 @@ module.exports = {
 		az09_: /^[a-z0-9_]+$/,
 		emailSimple: /^[\x00-\x7F]+@[a-z0-9]+\.[a-z0-9]+(\.[a-z0-9]+)?$/,
 		ascii: /^[\x00-\x7F]+$/,
+		password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]/,
 		custom: regex => {
 			return new RegExp(`^[${regex}]+$`);
 		}