remove error in console, and search work with unlog user
This commit is contained in:
@ -10,6 +10,8 @@ async function login()
|
||||
let response = await client.login(username, password);
|
||||
|
||||
if (response.status == 200) {
|
||||
await client.notice.disconnect();
|
||||
await client.notice.connect();
|
||||
navigateTo("/home");
|
||||
} else {
|
||||
let error = await response.json();
|
||||
|
@ -9,6 +9,7 @@ export default class extends AbstractAuthentifiedView
|
||||
|
||||
async postInit() {
|
||||
await client.logout();
|
||||
await client.notice.disconnect();
|
||||
navigateTo("/login")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user