update suggestion

This commit is contained in:
Damodar Lohani 2025-09-15 10:43:40 +00:00
parent 780799f87a
commit b5ca4c1166

View file

@ -3,6 +3,7 @@
namespace Appwrite\Migration\Version;
use Appwrite\Migration\Migration;
use Utopia\Auth\Proofs\Password;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\Document;
@ -269,7 +270,7 @@ class V17 extends Migration
* Set hashOptions type
*/
$document->setAttribute('hashOptions', array_merge($document->getAttribute('hashOptions', []), [
'type' => $document->getAttribute('hash', 'argon2')
'type' => $document->getAttribute('hash', (new Password())->getHash()->getName())
]));
break;
}