fix: reload viewer page after login
This commit is contained in:
@@ -147,6 +147,7 @@
|
||||
try {
|
||||
const res = await fetch('/api/login', {
|
||||
method: 'POST',
|
||||
credentials: 'same-origin',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ role: 'admin', password: input.value })
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user