password updates: fix couldnt password user_id 0, now encrypt instead of hash, backwards compatible

This commit is contained in:
zefie
2026-04-26 17:22:30 -04:00
parent 85a467ea92
commit 575749e970
2 changed files with 15 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ if (session_data.user_id !== 0 && session_data.user_id !== parseInt(request_head
data = errpage[1];
}
if (user_id && !errpage) {
if (user_id >= 0 && !errpage) {
headers = `200 OK
Connection: Keep-Alive
Content-Type: text/html`