Merge branch 'main' of https://github.com/CodingTurtle2/gmci_project
This commit is contained in:
commit
3bca723a7a
1 file changed
+10
+10
@@ -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>
|
||||
Reference in new issue
Block a user