1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

Update 'email' to 'password' in factors

This commit is contained in:
Bradley Schofield 2024-02-22 10:21:25 +00:00
parent d020730a74
commit bdf044ed8c

View file

@ -545,7 +545,7 @@ class V20 extends Migration
$factors = match ($document->getAttribute('provider')) {
Auth::SESSION_PROVIDER_ANONYMOUS => ['anonymous'],
Auth::SESSION_PROVIDER_PHONE => ['phone'],
default => ['email'],
default => ['password'],
};
$document->setAttribute('factors', $factors);