fix, add auto login when register

This commit is contained in:
2023-12-04 12:32:15 +01:00
parent 25f315c24f
commit 910644a804
6 changed files with 29 additions and 11 deletions

View File

@ -1,5 +1,5 @@
import { client, navigateTo } from "../../index.js";
import AbstractAuthentifiedView from "../AbstractNonAuthentified.js";
import AbstractNonAuthentifiedView from "../AbstractNonAuthentified.js";
async function register()
{
@ -14,7 +14,6 @@ async function register()
return;
}
["username", "user", "password"].forEach(error_field => {
let error_display = document.getElementById(`error_${error_field}`);
if (error_display != null)
@ -28,7 +27,7 @@ async function register()
});
}
export default class extends AbstractAuthentifiedView {
export default class extends AbstractNonAuthentifiedView {
constructor(params) {
super(params, "Register", "/home");
}