forked from cory/tildefriends
Fix login.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3801 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
0ddb86b5a8
commit
fefb0f92bc
@ -80,7 +80,7 @@ function authHandler(request, response) {
|
|||||||
if (request.method == "POST" || formData.submit) {
|
if (request.method == "POST" || formData.submit) {
|
||||||
session = newSession();
|
session = newSession();
|
||||||
sessionIsNew = true;
|
sessionIsNew = true;
|
||||||
formData = form.decodeForm(request.body, formData);
|
formData = form.decodeForm(utf8Decode(request.body), formData);
|
||||||
if (formData.submit == "Login") {
|
if (formData.submit == "Login") {
|
||||||
var account = gDatabase.get("user:" + formData.name);
|
var account = gDatabase.get("user:" + formData.name);
|
||||||
account = account ? JSON.parse(account) : account;
|
account = account ? JSON.parse(account) : account;
|
||||||
|
Loading…
Reference in New Issue
Block a user