add: user profiles and junk

This commit is contained in:
trisua 2025-09-01 20:17:32 -04:00
parent 6b8c33d27f
commit 2bd23f8214
28 changed files with 1139 additions and 108 deletions

View file

@ -1,10 +1,10 @@
(text "{% extends \"root.lisp\" %} {% block head %}")
(title
(text "Login — {{ name }}"))
(text "Login — {{ config.name }}"))
(text "{% endblock %} {% block body %}")
(div
("class" "card container small")
(h4 (text "Login with Tetratto"))
(h4 ("class" "text_center w_full") (text "Log in with Tetratto"))
(form
("class" "flex flex_col gap_4")
@ -63,6 +63,7 @@
document.getElementById(`flow_${flow_page}`).style.display = \"contents\";
}
const search = new URLSearchParams(window.location.search);
async function login(e) {
e.preventDefault();
@ -101,7 +102,11 @@
// redirect
setTimeout(() => {
window.location.href = \"/chats\";
if (search.get(\"redirect\") && (search.get(\"redirect\").startsWith(window.location.origin) || search.get(\"redirect\").startsWith(\"/\"))) {
window.location.href = search.get(\"redirect\");
} else {
window.location.href = \"/chats\";
}
}, 150);
}
});