accounts: fix: rename func
This commit is contained in:
parent
d9235ed107
commit
5155ecdd61
@ -29,7 +29,7 @@ export default class extends AbstractNonAuthentifiedView
|
|||||||
let new_mode = location.pathname.slice(1);
|
let new_mode = location.pathname.slice(1);
|
||||||
this.update_mode(new_mode);
|
this.update_mode(new_mode);
|
||||||
|
|
||||||
document.getElementById("button").onclick = this.authentificate.bind(this);
|
document.getElementById("button").onclick = this.authenticate.bind(this);
|
||||||
|
|
||||||
let username_input = document.getElementById('username-input'),
|
let username_input = document.getElementById('username-input'),
|
||||||
password_input = document.getElementById('password-input');
|
password_input = document.getElementById('password-input');
|
||||||
@ -37,7 +37,7 @@ export default class extends AbstractNonAuthentifiedView
|
|||||||
[username_input, password_input].forEach(input => {
|
[username_input, password_input].forEach(input => {
|
||||||
input.addEventListener('keydown', async ev => {
|
input.addEventListener('keydown', async ev => {
|
||||||
if (ev.key === 'Enter')
|
if (ev.key === 'Enter')
|
||||||
await this.authentificate.bind(this)()
|
await this.authenticate.bind(this)()
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user