1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

fixed setExpiry()

The bug was that setExpiry didn't work if account was enabled and didn't have an expiry already.
This commit is contained in:
Aleksa Siriški 2023-02-01 23:11:21 +01:00 committed by GitHub
parent 5d289ce023
commit f50596c4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1334,10 +1334,8 @@ export class accountsList {
const list = this._collectUsers(); const list = this._collectUsers();
let applyList: string[] = []; let applyList: string[] = [];
for (let id of list) { for (let id of list) {
if (this._users[id].expiry || enableUser) {
applyList.push(id); applyList.push(id);
} }
}
this._enableExpiryReason.classList.add("unfocused"); this._enableExpiryReason.classList.add("unfocused");
let header: string; let header: string;
if (enableUser) { if (enableUser) {