Don't require name to post
This commit is contained in:
parent
31d25936e2
commit
fb8cc6427e
|
@ -61,8 +61,8 @@ get '/' => sub ($c) {
|
|||
} => 'index';
|
||||
|
||||
any [qw{GET POST}], '/sign' => sub ($c) {
|
||||
if ($c->param('name') && $c->param('message')) {
|
||||
my $name = $c->param('name');
|
||||
if ($c->req->method() eq 'POST' && $c->param('message')) {
|
||||
my $name = $c->param('name') || 'Anonymous';
|
||||
my $message = $c->param('message');
|
||||
my $answer = $c->param('answer');
|
||||
|
||||
|
|
Loading…
Reference in a new issue