Start of works on frontend
This commit is contained in:
9
static/js/loginpage.js
Normal file
9
static/js/loginpage.js
Normal file
@ -0,0 +1,9 @@
|
||||
async function handleLogin(event) {
|
||||
event.preventDefault();
|
||||
const username = document.getElementById("username").value;
|
||||
const password = document.getElementById("password").value;
|
||||
const result = await login(username, password);
|
||||
if (result) {
|
||||
window.location.href = "/";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user