Login leitet Studenten an korrekte Übersicht

This commit is contained in:
Marvin Greber committed 2025-12-30 15:50:10 +01:00
1 parent 7c48e66677
commit 1153520f57
1 file changed
+10
+10
View File
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -8,6 +9,7 @@
<script src="./auth.js"></script>
<script src="./lib/basic.js"></script>
</head>
<body>
<input id="username"><br>
@@ -41,10 +43,18 @@ async function login() {
return;
}
switch (user.role) {
case "professor":
location.href = "./prof/uebersicht.html?user=" + username;
return;
case "student":
location.href = "./student/uebersicht.html?user=" + username;
return;
}
}
</script>
</body>
</html>