mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #358] Hide not configured gateways for users #79
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#79
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 @robrec on GitHub (Jul 2, 2020).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/358
i cant find anything in the administrator documentation, so i hope to find answers here :)
i want to "not showup" the not configured gateways in settings/user/security
Is there a way already builtin? Thanks!!
@ChristophWurst commented on GitHub (Jul 2, 2020):
I thought this is a known issue but apparently nobody reported it.
So, yeah, I know about this. There is no setting right now.
Any help with an implementation is welcome. This is purely a community app.
@kffl commented on GitHub (Oct 16, 2021):
I've briefly looked into this issue and it seems somewhat problematic to implement as the Vue component in personal settings only controls what is below the 2FA provider name and icon wrapped in an h3 tag and rendered server-side in
apps/settings/templates/settings/personal/security/twofactor.php. Also, the wayIProviderinterface only supports determining whether a given 2FA provider is enabled for a given user and doesn't contain additional state indicating that a given method is configured/unconfigured, based on which personal settings of that method could be conditionally omitted. Given those entanglements, I have found 3 potential solutions to implement such functionality:github.com/kffl/twofactor_gateway@ec378ef8db, but it's a rather hacky solution.<provider>entries from info.xml based onocccommands used to configure various gateways offered by this app. Unfortunately, code that re-writes itself (even if it's XML) is a bad pattern and I would be more inclined to accept such a hacky solution on the frontend rather than on the backend, especially given the fact that this is a security-oriented app.Would love to hear your feedback. Perhaps I'm still missing something.