First Commit FreePlanet_ServerSide
This commit is contained in:
7
server/tools/general.js
Normal file
7
server/tools/general.js
Normal file
@@ -0,0 +1,7 @@
|
||||
var os = require("os");
|
||||
|
||||
module.exports = {
|
||||
getHostname: function () {
|
||||
return os.hostname()
|
||||
}
|
||||
};
|
||||
10
server/tools/server_constants.js
Normal file
10
server/tools/server_constants.js
Normal 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,
|
||||
});
|
||||
Reference in New Issue
Block a user