]> source.dussan.org Git - nextcloud-server.git/commit
fix undefined index error when the backup codes provider is not active 2361/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 28 Nov 2016 07:47:34 +0000 (08:47 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 28 Nov 2016 07:48:57 +0000 (08:48 +0100)
commit2f36920ddf019c5fcd38420acf9e570d4c1ac267
treee5d0956639eae4a1dffefbf118b8d6b692a69d64
parent4e682d41136f658a316352a353d3d4611e95bca7
fix undefined index error when the backup codes provider is not active

In users have not created backup codes yet the app is not enabled for that user
and therefore we got an undefined index error because the code assumed it was
always there. It now properly returns null.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Authentication/TwoFactorAuth/Manager.php