Admin dashboard and sessions
This commit is contained in:
26
src/routes/admin/change_password_form.html
Normal file
26
src/routes/admin/change_password_form.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Change password</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/admin/password" method="post">
|
||||
<input
|
||||
type="password"
|
||||
name="current_password"
|
||||
placeholder="Current password"
|
||||
/>
|
||||
<input type="password" name="new_password" placeholder="New password" />
|
||||
<input
|
||||
type="password"
|
||||
name="new_password_check"
|
||||
placeholder="Confirm new password"
|
||||
/>
|
||||
<button type="submit">Change password</button>
|
||||
</form>
|
||||
{}
|
||||
<p><a href="/admin/dashboard">Back</a></p>
|
||||
</body>
|
||||
</html>
|
||||
20
src/routes/admin/dashboard.html
Normal file
20
src/routes/admin/dashboard.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Admin dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Welcome {}!</p>
|
||||
<p>Available actions:</p>
|
||||
<ol>
|
||||
<li><a href="/admin/password">Change password</a></li>
|
||||
<li>
|
||||
<form name="logoutForm" action="/admin/logout" method="post">
|
||||
<input type="submit" value="Logout" />
|
||||
</form>
|
||||
</li>
|
||||
</ol>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user