Fix login.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3801 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-01-29 19:05:57 +00:00
parent 0ddb86b5a8
commit fefb0f92bc

View File

@ -80,7 +80,7 @@ function authHandler(request, response) {
if (request.method == "POST" || formData.submit) {
session = newSession();
sessionIsNew = true;
formData = form.decodeForm(request.body, formData);
formData = form.decodeForm(utf8Decode(request.body), formData);
if (formData.submit == "Login") {
var account = gDatabase.get("user:" + formData.name);
account = account ? JSON.parse(account) : account;