1
0
Fork 0
mirror of synced 2024-09-21 03:52:23 +12:00

fix: migration prevent second password

This commit is contained in:
Torsten Dittmann 2022-09-14 12:10:27 +02:00
parent 587a8b5b7b
commit 620d864d17

View file

@ -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.
*/