aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Migrate all uses of OCP\Template to OCP\Template\ITemplateManagerCôme Chilliet2025-03-062-7/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-2115-157/+67
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(BackgroundJobs): Adjust intervals and time sensitivitiesprovokateurin2024-10-081-2/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: move to new activity exceptionrefactor/move-to-new-activity-exceptionAnna Larch2024-09-171-3/+3
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* refactor(twofactor_backupcodes): Replace security annotations with ↵provokateurin2024-07-271-3/+4
| | | | | | respective attributes Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-3124-486/+48
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-022-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(twofactor_backupcodes): Mirate away from deprecated eventCôme Chilliet2024-01-303-9/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-306-0/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-235-13/+13
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(2fa-backupcodes): Don't remember disabled and deleted users over and ↵Joas Schilling2023-11-172-0/+10
| | | | | | over again Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(backupcodes): Remove old notifications before creating a new reminderJoas Schilling2023-11-141-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-14/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use the new option to signaling insensitivityJoas Schilling2022-02-071-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow admins to disable 2FA backup codes via occChristoph Wurst2021-08-242-2/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0424-47/+50
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move 2fa backupscode to new registrationRoeland Jago Douma2021-04-201-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Listen to proper UserDeletedEventRoeland Jago Douma2021-04-162-17/+54
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move over notification to new registrationRoeland Jago Douma2021-04-161-8/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format headerJ0WI2021-04-1511-22/+0
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* 2FA backupcodes: add strict typingJ0WI2021-04-159-9/+37
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Fix type error in CheckBackupCodes bg jobRoeland Jago Douma2021-03-111-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Type some of the core mappersChristoph Wurst2020-10-121-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use dispatchTyped instead of dispatch on the new event dispatcherMorris Jobke2020-08-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-211-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Replace TYPE with TYPESDaniel Kesselberg2020-06-302-7/+8
| | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Migrate Two-Factor Backup Codes to new bootstrap mechanismChristoph Wurst2020-06-171-24/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add dedicated API for apps' bootstrapping processChristoph Wurst2020-06-171-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-293-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1016-18/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-253-6/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0523-35/+106
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-226-6/+6
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only human readbale backup charsRoeland Jago Douma2019-10-221-1/+1
| | | | | | | Fixes #14811 Only use humand readable chars (so no I and 1 etc) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused backupscode functionRoeland Jago Douma2019-09-121-9/+0
| | | | | | We use the initial state API so no need for this anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #15040 from ↵Morris Jobke2019-07-172-11/+22
|\ | | | | | | | | nextcloud/feature/13980/push-for-deleted-notifications Notifications overhaul
| * Keep the old method as a fallback and adjust the testsJoas Schilling2019-07-161-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Update twofactor_backupcodes NotifierJoas Schilling2019-07-152-11/+22
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add icon to twofactor_backupcodes notificationJan-Christoph Borchardt2019-07-161-0/+3
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | Fix wording of backupcodes notificationJan-Christoph Borchardt2019-07-161-1/+1
|/ | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add event dispatcher to OCPChristoph Wurst2019-06-259-81/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not send notification if no active 2faRoeland Jago Douma2019-03-051-1/+9
| | | | | | | If the job is still present we should also not fire it off if there is not a single active 2FA provider. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear backupcodes reminder if no 2FA is enabledRoeland Jago Douma2019-03-052-0/+72
| | | | | | | | | | Fixes #14125 Listen to 2FA disable event. If a provider is disabled for a user. We check if there are no more providers. If there are no more providers we Remove the backupcode reminder notification (if still present). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>