This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
evolix
/
evoadmin-web
Watch
16
Star
0
Fork
0
Code
Issues
33
Pull Requests
4
Releases
0
Wiki
Activity
Browse Source
Ensure a password can't contain a "/"
evacome-wrapper
Ludovic Poujol
1 year ago
parent
d63150c4ce
commit
a200ccfdeb
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
evolibs/Form.php
+ 5
- 0
evolibs/Form.php
View File
@ -720,6 +720,11 @@ class PasswordInputFormField extends FormField {
return
FALSE
;
}
if
(
!
preg_match
(
'#.*[/]+.*#'
,
$this
->
value
)
==
0
){
if
(
$set_error
)
$this
->
error
=
'Votre mot de passe doit contenir le caractère \'/\''
;
return
FALSE
;
}
return
TRUE
;
}
Write
Preview
Loading…
Cancel
Save