Revert "Login Loop"

This reverts commit 16c6c28f07.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:31:50 +01:00
1 parent fa96fe0e15
commit 3e052e56b1
3 files changed
+1 -47

No files matched your search

-18
View File
@@ -49,22 +49,4 @@ class InstallationTest extends TestCase
$this->assertDatabaseMissing('User', ['email' => 'another@example.test']);
}
public function test_an_existing_installation_can_upgrade_its_recorded_initial_admin_once(): void
{
$legacyOwner = User::factory()->create(['isSuperAdmin' => false, 'passwordHash' => password_hash('password123', PASSWORD_BCRYPT)]);
ApplicationInstallation::create([
'id' => 'singleton',
'status' => 'INSTALLED',
'installedAt' => now(),
'initialAdminUserId' => $legacyOwner->id,
]);
$this->post('/manager/sign-in', [
'email' => $legacyOwner->email,
'password' => 'password123',
])->assertRedirect(route('manager.dashboard'));
$this->assertDatabaseHas('User', ['id' => $legacyOwner->id, 'isSuperAdmin' => 1]);
}
}