Some page/branding updates
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user