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