saging is case insensitive, on any position.
This commit is contained in:
parent
35ebb753a7
commit
148dd165d1
@ -1180,7 +1180,7 @@
|
|||||||
if (isQR) {
|
if (isQR) {
|
||||||
$('#error').textContent = '';
|
$('#error').textContent = '';
|
||||||
}
|
}
|
||||||
qr.sage = $('input[name=email]', form).value === 'sage';
|
qr.sage = /sage/i.test($('input[name=email]', form).value);
|
||||||
if (isQR) {
|
if (isQR) {
|
||||||
return qr.autohide.set();
|
return qr.autohide.set();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -922,7 +922,7 @@ qr =
|
|||||||
if isQR
|
if isQR
|
||||||
$('#error').textContent = ''
|
$('#error').textContent = ''
|
||||||
|
|
||||||
qr.sage = $('input[name=email]', form).value == 'sage'
|
qr.sage = /sage/i.test $('input[name=email]', form).value
|
||||||
if isQR
|
if isQR
|
||||||
qr.autohide.set()
|
qr.autohide.set()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user