clean: rename: authentification to authenticate
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
|
||||
import { client, lang, navigateTo } from "../../index.js";
|
||||
import { clear, fill_errors } from "../../utils/formUtils.js";
|
||||
import AbstractNonAuthentifiedView from "../abstracts/AbstractNonAuthentifiedView.js";
|
||||
import AbstractNonAuthenticatedView from "../abstracts/AbstractNonAuthenticatedView.js";
|
||||
|
||||
export default class extends AbstractNonAuthentifiedView
|
||||
export default class extends AbstractNonAuthenticatedView
|
||||
{
|
||||
constructor(params, lastUrlBeforeLogin = '/home')
|
||||
{
|
||||
@ -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.authenticate.bind(this);
|
||||
document.getElementById("button").onclick = this.authencation.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.authenticate.bind(this)()
|
||||
await this.authencation.bind(this)()
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -114,7 +114,7 @@ export default class extends AbstractNonAuthentifiedView
|
||||
/**
|
||||
* @returns {Promise}
|
||||
*/
|
||||
async authenticate()
|
||||
async authencation()
|
||||
{
|
||||
let username = document.getElementById("username-input").value,
|
||||
password = document.getElementById("password-input").value;
|
@ -1,7 +1,7 @@
|
||||
import { client, lang, navigateTo } from "../../index.js";
|
||||
import AbstractAuthentifiedView from "../abstracts/AbstractAuthentifiedView.js";
|
||||
import AbstractAuthenticatedView from "../abstracts/AbstractAuthenticatedView.js";
|
||||
|
||||
export default class extends AbstractAuthentifiedView
|
||||
export default class extends AbstractAuthenticatedView
|
||||
{
|
||||
constructor(params, lastPageUrl = '/login') {
|
||||
super(params, lang.get('logoutWindowTitle', 'Logout'));
|
||||
|
Reference in New Issue
Block a user