gitoria
All repositories: gitoria
842 B
// components/loginfailed.hl — `/login/failed`: WHY A LOGIN DID NOT WORK (gitoria#16; was a hand-built HTML page in// project.hl). The login button's return (project.hl loginCallback, a function route: it must answer with a// redirect and a cookie) parks the reason in the session (`session.data.loginError`) and redirects here.parent './main.hl'import { siteName } from '../project.hl'import { publicUrl } from '../users.hl'session = nullwhy = session != null && session.data != null && session.data.loginError != null ? session.data.loginError : 'the login did not finish — try again'mainHref = publicUrl + '/'__title = 'Login failed · ' + siteNameView {repoPage {h1 { id = "loginfailed" "Login failed" }p { id = "error" class = "message" why }p { a { id = "home" href = mainHref "back to gitoria" } }}}
Branches
- mainmain branch