From 620d864d17cd4dba2bb4063ce31664fe4fcec114 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 14 Sep 2022 12:10:27 +0200 Subject: [PATCH] fix: migration prevent second password --- src/Appwrite/Migration/Version/V15.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Appwrite/Migration/Version/V15.php b/src/Appwrite/Migration/Version/V15.php index 67046b975d..350155e7b5 100644 --- a/src/Appwrite/Migration/Version/V15.php +++ b/src/Appwrite/Migration/Version/V15.php @@ -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. */