Skip to content

Commit 31f3881

Browse files
authored
Fix identifier collision (#1192)
Been working on this too long looking for options ;) Post #1174 Auto-merge
1 parent 952831f commit 31f3881

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

views/includes/scripts/loginEcho.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
function onInput(aEv) {
2121
var req = new XMLHttpRequest();
22-
var username = cleanFilename(aEv.target.value, '');
22+
var wantname = cleanFilename(aEv.target.value, '');
2323

24-
if (username) {
25-
req.open('HEAD', '/api/user/exist/' + username);
24+
if (wantname) {
25+
req.open('HEAD', '/api/user/exist/' + wantname);
2626
req.onreadystatechange = function () {
2727
if (this.readyState == this.DONE) {
2828
switch (this.status) {
@@ -44,8 +44,8 @@
4444
req.send();
4545
}
4646

47-
if (username.value !== username) {
48-
username.value = username;
47+
if (username.value !== wantname) {
48+
username.value = wantname;
4949
}
5050
}
5151

0 commit comments

Comments
 (0)