mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
forbid the user name 'dev'
This commit is contained in:
parent
a47d76958c
commit
32f3334b5c
1 changed files with 6 additions and 3 deletions
9
index.pl
9
index.pl
|
@ -992,7 +992,7 @@ post '/x/register' => sub {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $self->check_if_user_name_exists($user) ) {
|
if ( $self->check_if_user_name_exists($user) or $user eq 'dev' ) {
|
||||||
$self->render( 'register', invalid => 'user_collision' );
|
$self->render( 'register', invalid => 'user_collision' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1036,9 +1036,12 @@ post '/x/register' => sub {
|
||||||
],
|
],
|
||||||
body => encode( 'utf-8', $body ),
|
body => encode( 'utf-8', $body ),
|
||||||
);
|
);
|
||||||
sendmail($reg_mail);
|
|
||||||
|
|
||||||
$self->render( 'login', from => 'register' );
|
# TODO re-enable once remaining registration code is complete
|
||||||
|
#sendmail($reg_mail);
|
||||||
|
#$self->render( 'login', from => 'register' );
|
||||||
|
|
||||||
|
$self->render( 'register', invalid => 'not implemented yet' );
|
||||||
};
|
};
|
||||||
|
|
||||||
get '/*station' => sub {
|
get '/*station' => sub {
|
||||||
|
|
Loading…
Reference in a new issue