mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Hash pwd
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6c1449cf92
commit
83449cc246
|
@ -28,10 +28,12 @@ class LoginTest extends DuskTestCase
|
|||
{
|
||||
$user = User::factory()->superuser()->create([
|
||||
'username' => 'admin',
|
||||
'password' => 'password',
|
||||
'password' => Hash::make('password'),
|
||||
]);
|
||||
|
||||
$this->browse(function (Browser $browser) use ($user) {
|
||||
$browser->logout();
|
||||
|
||||
$browser->visit('/login')
|
||||
->type('username', $user->username)
|
||||
->type('password', 'password')
|
||||
|
|
Loading…
Reference in a new issue