Skip to content

Commit 639a3f5

Browse files
committed
Added new improvements.
1 parent 61bccb9 commit 639a3f5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

definitions/auth.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ opt.options = { samesite: 'lax', httponly: true };
77

88
opt.onread = function(meta, next) {
99

10-
// meta.sessionid {String}
11-
// meta.userid {String}
12-
// meta.ua {String} A user-agent
10+
// meta.sessionid {String}
11+
// meta.userid {String}
12+
// meta.ua {String} A user-agent
1313

1414
NOSQL('sessions').read().id(meta.sessionid).where('userid', meta.userid).where('ua', meta.ua).callback(function(err, response) {
1515
if (response) {

definitions/superadmin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,16 @@ SuperAdmin.sysinfo = function(callback) {
319319

320320
arr.push(function(next) {
321321

322-
if (SuperAdmin.server.index % 20 !== 0) {
322+
if (SuperAdmin.server.ip && SuperAdmin.server.index % 20 !== 0) {
323323
next();
324324
return;
325325
}
326326

327327
Exec('curl ifconfig.me', function(err, response) {
328-
if (response)
329-
SuperAdmin.server.ip = response;
328+
SuperAdmin.server.ip = response && response.indexOf('<') === -1 ? response : '';
330329
next();
331330
});
331+
332332
});
333333

334334
/*

public/forms/upload.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
var model = GET('?');
5252
DAPI('build_read/' + model.app.id + ' @showloading', function(response) {
5353
SETTER('builder/load @hideloading', response ? STRINGIFY(response, true) : '', function(response) {
54-
DAPI('build_save/' + model.app.id + ' @showloading', response, ASETTER('notifybar/response @hideloading', '@(Application <b>"{0}"</b> has been updated sucessfully.)'.format(app.url)));
54+
DAPI('build_save/' + model.app.id + ' @showloading', response, ASETTER('notifybar/response @hideloading', '@(Application <b>"{0}"</b> has been updated sucessfully.)'.format(model.app.url)));
5555
});
5656
});
5757
};

schemas/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ NEWSCHEMA('Users', function(schema) {
6161
// tries to find a user
6262
if (!response) {
6363
var password = GUID(10);
64-
model = {};
64+
var model = {};
6565
model.id = UID();
6666
model.dtcreated = NOW;
6767
model.name = 'Total Admin';

0 commit comments

Comments
 (0)