nextcloud / twofactor_gateway

🔑 Second factor provider using an external messaging gateway (SMS, Telegram, Signal)
GNU Affero General Public License v3.0
109 stars 63 forks source link

Some branding issues #345

Open euh2 opened 4 years ago

euh2 commented 4 years ago

I would like to have company/site name instead of Nextcloud in verification messages. Like l10n/de_DE.json, could be "%s is your Nextcloud {SITENAME-PLACEHOLDER} authentication code" Hope you guys will consider this feature!

ChristophWurst commented 4 years ago

Contributions are very welcome. This is a community app.

cdjenkins commented 4 years ago

If I want to change this feature, where would I start? @ChristophWurst

ChristophWurst commented 4 years ago

You can access the instance name via \OCP\Defaults::getName()

See https://github.com/nextcloud/twofactor_totp/blob/165b0f09e9562c2f4c4f27f6c25ebe941f99533e/lib/Controller/SettingsController.php#L112 for reference.