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 |
); |
); |