fix: migration prevent second password
This commit is contained in:
parent
587a8b5b7b
commit
620d864d17
1 changed files with 8 additions and 0 deletions
|
@ -1093,6 +1093,14 @@ class V15 extends Migration
|
|||
if (is_null($user->getAttribute('password'))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Skip if hash is set to default value.
|
||||
*/
|
||||
if ($user->getAttribute('hash') === 'bcrypt') {
|
||||
continue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Skip when password is JSON.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue