g2.4
This commit is contained in:
1 parent
e49ce13dc7
commit
322c62ec80
7 files changed
+387
-23
No files matched your search
+2
-10
@@ -25,7 +25,7 @@ async function getData() {
|
||||
|
||||
async function login() {
|
||||
const data = await getData();
|
||||
const username = getId("username").value;
|
||||
const username = getId("username").value.toLowerCase();
|
||||
const password = getId("password").value;
|
||||
|
||||
const user = data[username];
|
||||
@@ -39,17 +39,9 @@ async function login() {
|
||||
return;
|
||||
}
|
||||
|
||||
location.href = "/uebersicht.html";
|
||||
location.href = "./prof/uebersicht.html?user=" + username;
|
||||
}
|
||||
|
||||
couchDB.set("users", {
|
||||
turtle: {
|
||||
password: "password",
|
||||
level: 1,
|
||||
isProf: true
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user