Skip to content

[stable32] feat: support whatsapp signal telegram xmpp token methods#5980

Merged
vitormattos merged 5 commits intostable32from
backport/5979/stable32
Dec 3, 2025
Merged

[stable32] feat: support whatsapp signal telegram xmpp token methods#5980
vitormattos merged 5 commits intostable32from
backport/5979/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #5979

- Keep identify parameter optional for cases like email where user may
  want to send code to alternative address
- Use getIdentifierValue() as fallback when identify is not provided
- This ensures token methods (SMS, WhatsApp, etc.) use the registered
  phone number from the entity

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Use factory->get() instead of factory->getGateway()
- Use gateway->isComplete() instead of gateway->getConfig()->isComplete()
- Compatible with TwoFactorGateway 3.0.0-dev.0

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Rename component to reflect its broader use for all token-based
authentication methods (SMS, WhatsApp, Signal, Telegram, XMPP) instead
of just SMS.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Adds needTokenCode() method that checks for any active token-based
authentication method (SMS, WhatsApp, Signal, Telegram, XMPP) needing
a verification code. This replaces the SMS-only needSmsCode() check
and enables proper modal display for all token-based methods.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Updates Sign.vue to use the renamed ModalTokenManager component and
needTokenCode() method. Changes signWithSMSCode to signWithTokenCode
with automatic detection of active token method (SMS, WhatsApp, Signal,
Telegram, or XMPP), enabling proper authentication for all token-based
signature methods.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 3, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Dec 3, 2025
@vitormattos vitormattos merged commit be551a6 into stable32 Dec 3, 2025
62 checks passed
@vitormattos vitormattos deleted the backport/5979/stable32 branch December 3, 2025 23:54
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant