mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: migration prevent second password
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user