mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
remove "twoFactorAuthEnabled" from preferences. Kill switches for all code that references them (easier for refactor)
This commit is contained in:
@@ -73,6 +73,7 @@ class AuthenticateTwoFactorTest extends TestCase
|
||||
*/
|
||||
public function testMiddlewareNoTwoFA(): void
|
||||
{
|
||||
die('this test references old 2FA code.');
|
||||
$this->withoutExceptionHandling();
|
||||
$user = $this->user();
|
||||
$user->blocked = 0;
|
||||
@@ -104,6 +105,7 @@ class AuthenticateTwoFactorTest extends TestCase
|
||||
*/
|
||||
public function testMiddlewareTwoFAAuthed(): void
|
||||
{
|
||||
die('this test references old 2FA code.');
|
||||
$this->withoutExceptionHandling();
|
||||
$user = $this->user();
|
||||
$user->blocked = 0;
|
||||
@@ -137,6 +139,7 @@ class AuthenticateTwoFactorTest extends TestCase
|
||||
*/
|
||||
public function testMiddlewareTwoFANoSecret(): void
|
||||
{
|
||||
die('this test references old 2FA code.');
|
||||
$this->withoutExceptionHandling();
|
||||
$user = $this->user();
|
||||
$user->blocked = 0;
|
||||
@@ -168,6 +171,7 @@ class AuthenticateTwoFactorTest extends TestCase
|
||||
*/
|
||||
public function testMiddlewareTwoFASecret(): void
|
||||
{
|
||||
die('this test references old 2FA code.');
|
||||
$this->withoutExceptionHandling();
|
||||
$user = $this->user();
|
||||
$user->blocked = 0;
|
||||
|
@@ -64,6 +64,7 @@ class RedirectIf2FAAuthenticatedTest extends TestCase
|
||||
*/
|
||||
public function testMiddlewareAuthenticated(): void
|
||||
{
|
||||
die('this test references old 2FA code.');
|
||||
// pref for has 2fa is true
|
||||
$preference = new Preference;
|
||||
$preference->data = true;
|
||||
|
Reference in New Issue
Block a user