/[soft]/identity/CatDap/branches/live/lib/CatDap/Controller/register.pm
ViewVC logotype

Diff of /identity/CatDap/branches/live/lib/CatDap/Controller/register.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5043 by buchan, Mon Aug 29 10:12:45 2011 UTC revision 5044 by rda, Thu Jun 28 13:49:45 2012 UTC
# Line 67  sub check : Local { Line 67  sub check : Local {
67          push @errors, $c->loc('Username is not authorized to be used');          push @errors, $c->loc('Username is not authorized to be used');
68      }      }
69    
70      if ($c->request->params->{gn} !~ /^[\p{IsAlnum} ]+$/) {      if ($c->request->params->{gn} !~ /^[\p{IsAlnum}'\- ]+$/) {
71          push @errors, $c->loc(          push @errors, $c->loc(
72              'The first name supplied contains illegal characters'              'The first name supplied contains illegal characters'
73          );          );
74      }      }
75      if ($c->request->params->{sn} !~ /^[\p{IsAlnum} ]+$/) {      if ($c->request->params->{sn} !~ /^[\p{IsAlnum}'\- ]+$/) {
76          push @errors, $c->loc(          push @errors, $c->loc(
77              'The surname supplied contains illegal characters'              'The surname supplied contains illegal characters'
78          );          );

Legend:
Removed from v.5043  
changed lines
  Added in v.5044

  ViewVC Help
Powered by ViewVC 1.1.30