mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
update suggestion
This commit is contained in:
parent
780799f87a
commit
b5ca4c1166
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue