mirror of
https://github.com/swg-ostrich/site.git
synced 2026-01-16 23:04:21 -05:00
Added some todos to login and metric api endpoints
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
switch(login.type)
|
||||
{
|
||||
case "loginserver":
|
||||
// @TODO: add cluster secret key verification
|
||||
break;
|
||||
case "website":
|
||||
break;
|
||||
@@ -32,6 +33,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// @TODO: log login attempt and type
|
||||
|
||||
app.managers.userManager.loginAccount(login.user_name, login.user_password, function(message, user) {
|
||||
if (message === "success") {
|
||||
res.send( { message: message, user: user } );
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
app.app.post("/api/metrics", function (req, res) {
|
||||
let metrics = req.body;
|
||||
console.log(JSON.stringify(metrics));
|
||||
// @TODO: add cluster secret key verification
|
||||
app.managers.metricsManager.processNewMetrics(metrics);
|
||||
res.json('success');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user