This commit is contained in:
AdrienLSH
2024-02-02 13:31:26 +01:00
parent 7e5628344c
commit 027fd9f940
4 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { client, lang } from "../index.js"
export default class extends AbstractView {
constructor(params) {
super(params, params.username);
this.username = params.username;
this.username = decodeURI(params.username);
}
async postInit()

View File

@ -21,8 +21,6 @@ async function login(redirectTo = '/home')
let response = await client.login(username, password);
if (response.status == 200) {
await client.notice.disconnect();
await client.notice.connect();
navigateTo(redirectTo);
} else {
let error = await response.json();