diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-26 12:08:09 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-26 12:08:09 +0000 |
commit | e1036b392202a5c198f1bf2d479e21da0240138f (patch) | |
tree | 4ebe69d1e84b29d53ed7923850b8951f750ef0bf /lib | |
parent | f5eb8fc856e050278b769386a0d2ae1741e46acd (diff) | |
download | identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.gz identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.bz2 identity-e1036b392202a5c198f1bf2d479e21da0240138f.tar.xz identity-e1036b392202a5c198f1bf2d479e21da0240138f.zip |
- relax check on first name and usrname ( #966 )
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CatDap/Controller/register.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CatDap/Controller/register.pm b/lib/CatDap/Controller/register.pm index 80dbbb9..4920175 100644 --- a/lib/CatDap/Controller/register.pm +++ b/lib/CatDap/Controller/register.pm @@ -66,12 +66,12 @@ sub check : Local { push @errors, $c->loc('Username is not authorized to be used'); } - if ($c->request->params->{gn} !~ /^[\p{IsAlnum} ]+$/) { + if ($c->request->params->{gn} !~ /^[\p{IsAlnum}'- ]+$/) { push @errors, $c->loc( 'The first name supplied contains illegal characters' ); } - if ($c->request->params->{sn} !~ /^[\p{IsAlnum} ]+$/) { + if ($c->request->params->{sn} !~ /^[\p{IsAlnum}'- ]+$/) { push @errors, $c->loc( 'The surname supplied contains illegal characters' ); |