added admin panel & fixed user registration

This commit is contained in:
2023-06-28 17:39:19 +05:00
parent 4538d122c5
commit 73630d4bb6
7 changed files with 81 additions and 44 deletions

View File

@ -1,16 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1><%= name %></h1>
<style>
iframe{
width: 100%;
}
</style>
<%- include('./static/start.ejs',{name:"admin",async: true}) %>
<%- include('./header.ejs') %>
<h1>hello admin</h1>
<form action="/add_user">
<input type="submit" value="add">
</form>
</body>
</html>
<iframe src="/reg" frameborder="0"></iframe>
<%- include('./static/end.ejs') %>