Update the testsuite...

now tests:
  * creating .env
  * migrating
  * creating admin
  * login
  * listing links
  * creating links
  * filtering links
This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent cb6ee80e43
commit b9a02b1740
5 changed files with 270 additions and 116 deletions
+3 -1
View File
@@ -281,7 +281,9 @@ pub async fn process_login_json(
Ok(HttpResponse::Ok().json2(&u))
} else {
info!("Invalid password for user: {}", &u.username);
Ok(redirect_builder("/admin/login/"))
Ok(HttpResponse::Unauthorized().json2(&Status::Error(Message {
message: "Failed to Login".to_string(),
})))
}
} else {
// should fail earlier if secret is missing.