mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
allow dot in login
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@526 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
cc275561c0
commit
10f1a1744f
@ -38,7 +38,7 @@ if( isset($_POST['login']) && isset($_POST['password']) ) {
|
|||||||
|
|
||||||
if( !$login ) {
|
if( !$login ) {
|
||||||
$errors[] = no_field("form.field.login");
|
$errors[] = no_field("form.field.login");
|
||||||
} else if( !preg_match( "/^[\w_]+$/",$login) ) {
|
} else if( !preg_match( "/^[\w_\.]+$/",$login) ) {
|
||||||
$errors[] = getlocal("page_agent.error.wrong_login");
|
$errors[] = getlocal("page_agent.error.wrong_login");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user