mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #601] Setting Phone number via API #121
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#121
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 @ogamingSCV on GitHub (Dec 14, 2023).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/601
Hello,
I am currently exploring the use of the SMS 2FA plugin for Nextcloud and was wondering if there is a method to programmatically set the phone number for SMS 2FA through an API. I am particularly interested in automating this process for user management.
Any insights or help on this matter would be greatly appreciated.
Best regards,
@oleua commented on GitHub (Dec 29, 2023):
Well, I use Signal as a 2FA and have patched
lib/Service/Gateway/Signal/Gateway.phpin order to pass the phone number as the account id, so the variableSIGNAL_CLI_DBUS_REST_API_ACCOUNT=>+XXXYYYYYYYYYis set inconfig.phpYou may reuse it somehow. Ideally, it might be great to add this configuration to webUI.
@oleua commented on GitHub (Jan 28, 2026):
In the v32 I do not use anymore the
SIGNAL_CLI_DBUS_REST_API_ACCOUNTvariable inconfig.php. I have adapted the configuration to make it compatible withbbernhard/signal-cli-rest-api, which I use:In
/apps/twofactor_gateway/lib/Provider/Channel/Signal/Gateway.php: