First Commit FreePlanet_ServerSide

This commit is contained in:
Paolo Arena
2018-12-24 20:31:02 +01:00
commit e39a6d714f
24 changed files with 6844 additions and 0 deletions

7
server/tools/general.js Normal file
View File

@@ -0,0 +1,7 @@
var os = require("os");
module.exports = {
getHostname: function () {
return os.hostname()
}
};

View File

@@ -0,0 +1,10 @@
module.exports = Object.freeze({
RIS_CODE_ERR: -99,
RIS_CODE_EMAIL_ALREADY_VERIFIED: -5,
RIS_CODE_EMAIL_VERIFIED: 1,
RIS_CODE_OK: 1,
RIS_CODE_LOGIN_ERR_GENERIC: -20,
RIS_CODE_LOGIN_ERR: -10,
RIS_CODE_LOGIN_OK: 1,
});