mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
added current password to the password changing form
This commit is contained in:
@@ -268,7 +268,7 @@ class SignFlowTest extends TestCase
|
||||
public function it_login_user()
|
||||
{
|
||||
$user = User::factory()
|
||||
->create(['email' => 'john@doe.com']);
|
||||
->create();
|
||||
|
||||
$this->postJson('/login', [
|
||||
'email' => $user->email,
|
||||
|
||||
@@ -72,12 +72,20 @@ class UserAccountTest extends TestCase
|
||||
$this
|
||||
->actingAs($user)
|
||||
->postJson('/api/user/password', [
|
||||
'current_password' => 'secret',
|
||||
'current' => 'secret',
|
||||
'password' => 'VerySecretPassword',
|
||||
'password_confirmation' => 'VerySecretPassword',
|
||||
])->assertStatus(204);
|
||||
|
||||
// TODO: login s novym heslom
|
||||
$this
|
||||
->actingAs($user)
|
||||
->postJson('/logout')
|
||||
->assertStatus(204);
|
||||
|
||||
$this->postJson('/login', [
|
||||
'email' => $user->email,
|
||||
'password' => 'VerySecretPassword',
|
||||
])->assertStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user