Bug fixes

- wtv-tricks:/unregister properly deletes SSID folder
- Registration properly saves account data if SSID folder doesn't exist
- do not send wtv-mail-count if SSID is not yet registered
- Registration now correctly creates the welcome message for user0
- update wtv-tricks:/unregister to only allow the primary user to unregister the account
This commit is contained in:
zefie
2022-03-12 15:14:32 -05:00
parent 8acb801ef0
commit 2be8c66b01
4 changed files with 24 additions and 3 deletions

View File

@@ -127,6 +127,7 @@ class WTVClientSessionData {
}
getNumberOfUserAccounts() {
if (!this.isRegistered()) return false;
if (this.user_id != 0) return false; // subscriber only command
return Object.keys(this.listPrimaryAccountUsers()).length;
}