feat(auth): login, MFA and account screens

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-04 20:21:33 -03:00
1 parent 67cf62b536
commit 42892cb37f
10 files changed
+1226 -13

No files matched your search

+9 -4
View File
@@ -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}");
}