From 7644306609f2a05bf69c966a66fbc98d229844e8 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:59:40 +0200 Subject: [PATCH] Fix steam otps not rotating when OTPs are always On - Closes #477 --- resources/js/views/twofaccounts/Accounts.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/views/twofaccounts/Accounts.vue b/resources/js/views/twofaccounts/Accounts.vue index e940fcb1..d9c8a99d 100644 --- a/resources/js/views/twofaccounts/Accounts.vue +++ b/resources/js/views/twofaccounts/Accounts.vue @@ -265,7 +265,7 @@ // We replace the current on screen passwords with the next_password to avoid having loaders. // The next_password will be confirmed with a new request to be synced with the backend no matter what. - const totpAccountsWithNextPasswordInThePeriod = twofaccounts.items.filter((account) => account.otp_type === 'totp'&& account.period == period && account.otp.next_password) + const totpAccountsWithNextPasswordInThePeriod = twofaccounts.items.filter((account) => account.otp_type.includes('totp') && account.period == period && account.otp.next_password) if (totpAccountsWithNextPasswordInThePeriod.length > 0) { totpAccountsWithNextPasswordInThePeriod.forEach((account) => { @@ -282,7 +282,7 @@ // twofaccounts TOTP updates response.data.forEach((account) => { - if (account.otp_type === 'totp') { + if (account.otp_type.includes('totp')) { const index = twofaccounts.items.findIndex(acc => acc.id === account.id) if (twofaccounts.items[index] == undefined) { twofaccounts.items.push(account)