even more fixes

This commit is contained in:
zefie
2022-02-10 01:20:58 -05:00
parent 4d8bc314b4
commit 955f21039c
2 changed files with 7 additions and 2 deletions

View File

@@ -53,10 +53,15 @@ class WTVClientSessionData {
this.loginWhitelist.push("wtv-head-waiter:/password");
}
assignMailStore() {
this.mailstore = new WTVMail(this.minisrv_config, this)
}
switchUserID(user_id, update_mail = true, update_ticket = true) {
this.user_id = user_id;
this.loadSessionData();
this.mailstore = new WTVMail(this.minisrv_config, this)
if (this.isRegistered()) this.assignMailStore();
if (this.data_store.wtvsec_login && update_ticket) this.setTicketData('user_id', user_id);
}