Two factor (#47)

* init 2fa

* fix code style
This commit is contained in:
Saeed Vaziry
2023-09-11 20:47:44 +02:00
committed by GitHub
parent 13d4529d42
commit 9030427f78
24 changed files with 652 additions and 259 deletions

View File

@ -13,7 +13,7 @@ public function test_logout(): void
{
$this->actingAs($this->user);
$this->post(route('logout'))->assertRedirect(route('login'));
$this->post(route('logout'))->assertRedirect('/');
$this->assertFalse(auth()->check());
}

View File

@ -14,7 +14,7 @@ public function test_confirm_password_screen_can_be_rendered(): void
{
$this->actingAs($this->user);
$response = $this->get('/confirm-password');
$response = $this->get(route('password.confirm'));
$response->assertStatus(200);
}
@ -26,7 +26,7 @@ public function test_password_can_be_confirmed(): void
{
$this->actingAs($this->user);
$response = $this->post('/confirm-password', [
$response = $this->post(route('password.confirm'), [
'password' => 'password',
]);
@ -38,7 +38,7 @@ public function test_password_is_not_confirmed_with_invalid_password(): void
{
$this->actingAs($this->user);
$response = $this->post('/confirm-password', [
$response = $this->post(route('password.confirm'), [
'password' => 'wrong-password',
]);