some fixes
This commit is contained in:
1 parent
218fe2c9a4
commit
e039ebc0d1
3 files changed
+11
-7
No files matched your search
@@ -24,8 +24,8 @@ int main() {
|
||||
srv.Options("/(.*)", set_cors_headers);
|
||||
|
||||
srv.set_mount_point("/auth/admin", "../src/web");
|
||||
srv.set_mount_point("/auth/admin/js", "../src/web/js");
|
||||
srv.set_mount_point("/auth/admin/css", "../src/web/css");
|
||||
srv.set_mount_point("/auth/js", "../src/web/js");
|
||||
srv.set_mount_point("/auth/css", "../src/web/css");
|
||||
|
||||
std::cout << GREEN << "Starting" << RESET << " server on [ " << YELLOW
|
||||
<< "localhost" << RESET << ":" << CYAN << "43243" << RESET << " ]" << std::endl;
|
||||
|
||||
+5
-5
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="auth/admin/css/index.css">
|
||||
<link rel="stylesheet" href="auth/admin/css/loginform.css">
|
||||
<link rel="stylesheet" href="auth/admin/css/message.css">
|
||||
<link rel="stylesheet" href="auth/admin/css/header.css">
|
||||
<link rel="stylesheet" href="auth/admin/css/userstable.css">
|
||||
<link rel="stylesheet" href="css/index.css">
|
||||
<link rel="stylesheet" href="css/loginform.css">
|
||||
<link rel="stylesheet" href="css/message.css">
|
||||
<link rel="stylesheet" href="css/header.css">
|
||||
<link rel="stylesheet" href="css/userstable.css">
|
||||
<title>admin</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,6 +5,10 @@ const loginforminputpassword = document.querySelector('#loginforminputpassword')
|
||||
const exitbutton = document.querySelector('.exitbutton')
|
||||
const usernameheader = document.querySelector('.usernameheader')
|
||||
|
||||
if (localStorage.getItem("token") === null) {
|
||||
loginform.classList.add("active")
|
||||
}
|
||||
|
||||
loginformbody.addEventListener('submit', (e) => {
|
||||
e.preventDefault()
|
||||
login(loginforminputusername.value, loginforminputpassword.value)
|
||||
|
||||
Reference in new issue
Block a user