summaryrefslogtreecommitdiff
path: root/lib/JWebmail.pm
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:35:48 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:35:48 +0200
commitebe37a68d39dbc1cc4f6af1c05301d5a5fc29c13 (patch)
tree0cead85194cb0d775b024132f4d29b55d6d854e0 /lib/JWebmail.pm
parent72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 (diff)
mostly renamed 'noaction' to 'login'
be carefult with GET vs POST
Diffstat (limited to 'lib/JWebmail.pm')
-rw-r--r--lib/JWebmail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JWebmail.pm b/lib/JWebmail.pm
index 9899b05..98001a1 100644
--- a/lib/JWebmail.pm
+++ b/lib/JWebmail.pm
@@ -83,9 +83,9 @@ sub route {
my $r = shift || $self->routes;
- $r->get('/' => 'noaction')->to('Webmail#noaction');
+ $r->get('/' => 'login')->to('Webmail#noaction');
+ $r->post('/' => 'login')->to('Webmail#login');
$r->get('/about')->to('Webmail#about');
- $r->post('/login')->to('Webmail#login');
$r->get('/logout')->to('Webmail#logout');
my $a = $r->under('/')->to('Webmail#auth');