mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 00:55:52 +03:00
[GH-ISSUE #861] Hide the secret code sent in messages (paranoid mode) #136
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oleua on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/861
Hi! I am a bit worried about displaying one-time codes in messages of my messengers, so I decided to find out how to hide it.
As I use only Signal as 2FA, I have modified manually
/apps/twofactor_gateway/lib/Provider/AProvider.phpby adding:
85
$secret = '||'.$secret.'||';Next time when I receive a code via Signal I will find it hidden like
In order to view it I have to click it and will see the numbers.
@vitormattos commented on GitHub (Feb 5, 2026):
Are you talking about the integration with Telegram?
@oleua commented on GitHub (Feb 6, 2026):
What Telegram? Signal, of course, perhaps other messengers, just to study how to do it there.
@vitormattos commented on GitHub (Feb 6, 2026):
Sorry, I made a quick read and didn't saw "Signal" and thought that was Telegram. Telegram also have the possibility to format as "spoiler". It's a good suggestion but will be necessary think a bit more and wait for more interactions of other Signal users about how to implement this.
Follow some points to we think:
github.com/nextcloud/twofactor_gateway@4812fa9127/lib/Provider/Channel/Signal/Gateway.php (L50-L60)allowMarkdown: true,, could be beforefields. You can test this. Setting this already will send the token as code syntax and will make a small improvement into Signal flow.@oleua commented on GitHub (Feb 13, 2026):
Thank you for your reply! So, how do you suggest to add the field?