Verified Commit 05fc37d6 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add basic error message

parent 484d7522
Loading
Loading
Loading
Loading
Loading
+2 −4
Changes for portal/static/js/components/pages/Login.mjs: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
import { Base } from "./Base.mjs"
import { isLoggedIn, login } from "../../account.mjs"
import { login } from "../../account.mjs"

function redirectBack() {
    const next = m.route.param("next")
@@ -27,9 +27,7 @@ function onLoginClicked() {
            document
                .querySelectorAll("form input")
                .forEach(element => (element.disabled = false))
            document
                .getElementById(error.response.invalid)
                .parentElement.classList.add("error")
            alert("Anmeldung fehlgeschlagen: CL-Account-Name oder Passwort wurden von Portal nicht erkannt.")
        })
}