summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/lib
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate personal two-factor provider settingsChristoph Wurst2018-10-022-55/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add job to check users for backup code remindersRoeland Jago Douma2018-10-022-0/+114
| | | | | | | | | Now that we can enforce 2FA we also should notify users that have enabled 2FA but do not yet have backup codes generated. This adds a repair step that inserts a background job to do this. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear notification to generate backup code once codes are generatedRoeland Jago Douma2018-10-012-0/+53
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Generate backups code notification if not enable but 2fa isRoeland Jago Douma2018-10-014-0/+245
| | | | | | | | | | | | Generate a notification to generate backup codes if you enable an other 2FA provider but backup codes are not yet generated. * Add event listner * Insert background job * Background job tests and emits notification every 2 weeks * If the backup codes are generated the next run will remove the job Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix backup codes column length to fix Argon2 hash valuesChristoph Wurst2018-08-211-0/+51
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix state propragation of the backup codes providerChristoph Wurst2018-08-016-41/+230
| | | | | | | | | | | | Starting with Nextcloud 14, the server knows the enabled/disabled state of 2fa providers. While it will query that information if it's unknown (on first use), it won't notice any changes. Thus, providers have to propagate that information themselves. Ref https://github.com/nextcloud/twofactor_totp/pull/263 Ref https://github.com/nextcloud/twofactor_u2f/pull/210 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make 2FA backupcodes strictRoeland Jago Douma2018-03-261-8/+10
| | | | | | * and follow the interface again Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8063 from nextcloud/inline-valueJoas Schilling2018-01-261-2/+1
|\ | | | | Return value immediately instead of assigning to a one-time variable
| * Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use $var[] = $a instead of array_push - 2x fasterMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-174-17/+14
| | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restore the sequencial orderJoas Schilling2017-09-291-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate the twofactor_backupcodes app to bigintJoas Schilling2017-09-291-0/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix database structure of twofactor backupcodes app to match 12Joas Schilling2017-09-191-0/+56
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5483 from nextcloud/issue-5075-png-files-for-activity-emailsMorris Jobke2017-07-071-7/+12
|\ | | | | Use PNGs for icons in activity emails
| * Use PNG version of the icons for shipped activitiesJoas Schilling2017-06-201-7/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix dropping tables and handle the prefix automaticallyJoas Schilling2017-07-052-8/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Move twofactor_backupcodes to migrationsJoas Schilling2017-07-052-31/+102
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | move encryption to security (and behind two factor things)Arthur Schiwon2017-06-271-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | move twofactor_* into securityArthur Schiwon2017-06-232-99/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | adapt twofactore_backupcodesArthur Schiwon2017-06-233-8/+180
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Publish 2fa backup codes activities to the right streamChristoph Wurst2017-05-181-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change 2FA activities to more generic security activitiesChristoph Wurst2017-05-183-208/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a update step that copies all the backup codesJoas Schilling2017-05-151-0/+108
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename the table to a valid nameJoas Schilling2017-05-151-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove 2FA backup codes on user deletionJoas Schilling2017-05-152-1/+73
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Hide 2FA backup codes if no other 2FA providers are enabledChristoph Wurst2017-05-021-1/+40
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* ignore code we're unable to testChristoph Wurst2017-01-181-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* test activity providerChristoph Wurst2017-01-181-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use constant and clean up unit testChristoph Wurst2017-01-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Increase 2fa backup codes entropyChristoph Wurst2017-01-161-1/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix typoChristoph Wurst2016-12-191-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* catch specific BadMethodCallExceptionChristoph Wurst2016-12-191-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix minor issuesChristoph Wurst2016-12-193-6/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* push activity when backup codes are generatedChristoph Wurst2016-12-193-2/+91
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Publish, parse and filter 2FA activitiesChristoph Wurst2016-12-193-0/+209
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove IDb interface which was deprecated for 3 years alreadyJoas Schilling2016-12-141-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Require confirmation when generating backup codesJoas Schilling2016-11-181-4/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not use underscores in PSR4 namespaces of the backup codes appChristoph Wurst2016-10-035-10/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix twofactor_backupcodesJoas Schilling2016-09-121-2/+2
|
* Fix more sniffingJoas Schilling2016-09-122-2/+2
|
* add 2fa backup codes appChristoph Wurst2016-09-055-0/+408
* add backup codes app unit tests * add integration tests for the backup codes app