diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-04 19:36:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-04 19:36:11 +0100 |
commit | 32f3334b5cb270201c553f16e407c5567ea7cccd (patch) | |
tree | f83f5cc8736264395552adf7ad85ff0fd25c522e | |
parent | a47d76958c36f365893c01a62561c54856765ba8 (diff) |
forbid the user name 'dev'
-rwxr-xr-x | index.pl | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -992,7 +992,7 @@ post '/x/register' => sub { 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' ); return; } @@ -1036,9 +1036,12 @@ post '/x/register' => sub { ], 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 { |