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:
Evgeny Gryaznov 2009-06-05 11:47:04 +00:00
parent cc275561c0
commit 10f1a1744f

View File

@ -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");
} }