Remove email support from login (fixes #99)
Change-Id: I1915890303c33cfb7a834fd4095e6cfc81e704fe
diff --git a/t/subfolder.t b/t/subfolder.t
index 01cf33e..e4aa9a4 100644
--- a/t/subfolder.t
+++ b/t/subfolder.t
@@ -12,7 +12,7 @@
$t->app->mode('production');
-$t->post_ok('/user/login' => form => { handle_or_email => 'test', pwd => 'fail' })
+$t->post_ok('/user/login' => form => { handle => 'test', pwd => 'fail' })
->status_is(302)
->header_is('Location' => '/');
@@ -22,7 +22,7 @@
->element_exists('script[src^=/js/kalamar-]')
->element_exists('div.notify-error')
->text_is('div.notify-error', 'Bad CSRF token')
- ->element_exists('input[name=handle_or_email][value=test]')
+ ->element_exists('input[name=handle][value=test]')
->element_exists_not('div.button.top a')
->content_like(qr!KorAP\.URL = ''!)
;
@@ -37,7 +37,7 @@
}
});
-$t->post_ok('/user/login' => form => { handle_or_email => 'test', pwd => 'fail' })
+$t->post_ok('/user/login' => form => { handle => 'test', pwd => 'fail' })
->status_is(302)
->header_is('Location' => '/');
@@ -68,7 +68,7 @@
is('kalamar-koraptest',$t->app->sessions->cookie_name);
ok($t->app->sessions->secure);
-$t->post_ok('/user/login' => form => { handle_or_email => 'test', pwd => 'fail' })
+$t->post_ok('/user/login' => form => { handle => 'test', pwd => 'fail' })
->status_is(302)
->header_is('Location' => '/');