projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7b3ce7
)
Applied patch [#443] More explicit error message
author
Roland Mas
<lolando@debian.org>
Fri, 4 Jan 2013 15:42:57 +0000
(16:42 +0100)
committer
Roland Mas
<lolando@debian.org>
Fri, 4 Jan 2013 15:42:57 +0000
(16:42 +0100)
src/common/include/User.class.php
patch
|
blob
|
history
diff --git
a/src/common/include/User.class.php
b/src/common/include/User.class.php
index
e29feae
..
9d042d9
100644
(file)
--- a/
src/common/include/User.class.php
+++ b/
src/common/include/User.class.php
@@
-289,6
+289,11
@@
class GFUser extends Error {
$this->setError(_('Invalid Password:'));
return false;
}
+ //testing if there is at least one capital letter in the unix name
+ if (preg_match('/[A-Z]/', $unix_name)) {
+ $this->setError(_('Invalid Unix Name (must not contain uppercase characters)'));
+ return false;
+ }
$unix_name=strtolower($unix_name);
if (!account_namevalid($unix_name)) {
$this->setError(_('Invalid Unix Name.'));