Skip to content

Commit 552abfc

Browse files
committed
fix: fix launcher login
1 parent b5cdc82 commit 552abfc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/launcher_auth.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ async function account_login(req, res) {
102102
req.body.username,
103103
req.body.password,
104104
);
105+
res.status(200).json(
106+
{ "auth_token": authToken }
107+
);
105108
} catch (e) {
106109
console.log("Login failed with error " + e.message);
107110
if (e.message == "link_account") {
@@ -111,7 +114,7 @@ async function account_login(req, res) {
111114
error_details: "link_account",
112115
});
113116
} else {
114-
req.status(401).json({
117+
res.status(401).json({
115118
error: 401,
116119
error_msg: e.message,
117120
});

0 commit comments

Comments
 (0)