Closed uniejo closed 4 years ago
My browser seems to reload a number of times, due to no reply (when allow_register is not set) I suggest adding the following not_found replies:
lib/Yancy/Plugin/Auth/Password.pm VERSION 1.059 :
sub _getregister { my ( $self, $c ) = @; if ( !$self->allow_register ) { $c->app->log->error( 'Registration not allowed (set allow_register)' );
$c->reply->not_found; return; } return $c->render( 'yancy/auth/password/register', plugin => $self, ); }
sub _postregister { my ( $self, $c ) = @; if ( !$self->allow_register ) { $c->app->log->error( 'Registration not allowed (set allow_register)' );
That's a great solution, thanks! I'll get this in right away
My browser seems to reload a number of times, due to no reply (when allow_register is not set) I suggest adding the following not_found replies:
lib/Yancy/Plugin/Auth/Password.pm VERSION 1.059 :
sub _getregister { my ( $self, $c ) = @; if ( !$self->allow_register ) { $c->app->log->error( 'Registration not allowed (set allow_register)' );
$c->reply->not_found; return; } return $c->render( 'yancy/auth/password/register', plugin => $self, ); }
sub _postregister { my ( $self, $c ) = @; if ( !$self->allow_register ) { $c->app->log->error( 'Registration not allowed (set allow_register)' );