Some page/branding updates

This commit is contained in:
Deon George
2020-08-16 16:44:12 +10:00
parent cdb0519c49
commit 224d4cbbb5
8 changed files with 25 additions and 23 deletions

View File

@@ -164,6 +164,7 @@ function register() {
user.location = fo.fieldValue('CITY')+', '+fo.fieldValue('COUNTRY');
user.zipcode = fo.fieldValue('PCODE');
user.netmail = fo.fieldValue('EMAIL');
user.comment = 'ANSITEX registered user';
bbs.user_sync();
bbs.logon();

View File

@@ -54,16 +54,18 @@ function sqrllogin() {
var qrcode = '';
/*
// Render the top line
var line = ascii(27)+'[1;37m'+bot+bot;
var line = ascii(27)+'[1;37m'+bot;
for (var y = 0; y < qr.size; y++) {
line += bot;
}
qrcode += line+bot+bot+ascii(27)+'[0m'+"\r\n";
*/
// Render the body
for (var x = -1; x < qr.size; x=x+2) {
line = ascii(27)+'[1;37m'+full+full;
line = ascii(27)+'[1;37m'+full;
for (var y = 0; y < qr.size; y++) {
// Top is white
@@ -76,17 +78,17 @@ function sqrllogin() {
}
}
qrcode += line+full+full+ascii(27)+'[0m'+"\r\n";
qrcode += line+full+ascii(27)+'[0m'+"\r\n";
}
// Render the bottom
line = ascii(27)+'[1;37m'+full+full;
line = ascii(27)+'[1;37m'+top;
for (var y = 0; y < qr.size; y++) {
line += full;
line += top;
}
qrcode += line+full+full+ascii(27)+'[0m'+"\r\n";
qrcode += line+top+ascii(27)+'[0m'+"\r\n";
subframe = new Frame(39,2,42,22,BG_BLACK|LIGHTGRAY,page);
subframe = new Frame(37,2,43,22,BG_BLACK|LIGHTGRAY,page);
ans2bin(fo.parse(qrcode),subframe);
subframe.open();
subframe.cycle();
@@ -130,15 +132,14 @@ function sqrllogin() {
}
}
} catch(err) {
log(LOG_INFO,'SQRL Error: '+err);
} catch (err) {
log(LOG_INFO,'SQRL Error: '+err+' '+JSON.stringify(sqrl));
cancel = true;
}
if (cancel) {
complete = true;
log(LOG_INFO,'DEBUG: ' + typeof subframe);
if (typeof subframe !== 'undefined')
if (typeof subframe === 'object')
subframe.close();
page.close();
action = ACTION_GOTO;
@@ -174,7 +175,7 @@ function sqrllogin() {
subframe.close();
frame.close();
}
*/
*/
}
this;
this;