feat(auth): login, MFA and account screens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
67cf62b536
commit
42892cb37f
10 files changed
+1226
-13
No files matched your search
@@ -301,11 +301,16 @@ async fn unknown_paths_answer_exactly_like_protected_ones() {
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn public_route_without_an_asset_is_404_and_assets_are_served() {
|
||||
async fn every_public_asset_is_served() {
|
||||
let (_d, _a, app) = fresh(Transport::Local);
|
||||
let r = send(&app, empty(Method::GET, "/login.html")).await;
|
||||
assert_eq!(r.status, StatusCode::NOT_FOUND);
|
||||
for path in ["/app.css", "/logo.png", "/i18n.js", "/i18n-en.js"] {
|
||||
for path in [
|
||||
"/login.html",
|
||||
"/login.js",
|
||||
"/app.css",
|
||||
"/logo.png",
|
||||
"/i18n.js",
|
||||
"/i18n-en.js",
|
||||
] {
|
||||
let r = send(&app, empty(Method::GET, path)).await;
|
||||
assert_eq!(r.status, StatusCode::OK, "{path}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user