summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-25 23:28:38 +0200
committerDerf Null <derf@finalrewind.org>2023-06-25 23:28:38 +0200
commit05924f2c676bfcbe61ff55cea50c5151f2a854a5 (patch)
tree139e485c561e262f81e74486d36cca4ebdf6db21 /t
parente14966c48837e521bce793d0b7e3a79e03543367 (diff)
Login: return HTTP 400 on invalid password or unconfirmed account
Diffstat (limited to 't')
-rw-r--r--t/02-registration.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/02-registration.t b/t/02-registration.t
index b588d15..53f772f 100644
--- a/t/02-registration.t
+++ b/t/02-registration.t
@@ -88,7 +88,7 @@ $t->post_ok(
password => 'foofoofoo',
}
);
-$t->status_is(200)->content_like(qr{nicht freigeschaltet});
+$t->status_is(400)->content_like(qr{nicht freigeschaltet});
my $res = $t->app->pg->db->select( 'users', ['id'], { name => 'someone' } );
my $uid = $res->hash->{id};
@@ -108,7 +108,7 @@ $t->post_ok(
password => 'definitely invalid',
}
);
-$t->status_is(200)->content_like(qr{falsches Passwort});
+$t->status_is(400)->content_like(qr{falsches Passwort});
# Successful login
$t->post_ok(