preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Browser gets no response on get/post_register when not allowed #108

Closed uniejo closed 4 years ago

uniejo commented 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)' );

preaction commented 4 years ago

That's a great solution, thanks! I'll get this in right away