mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
not add random password to history
This commit is contained in:
parent
15f52b933b
commit
3f26e66d26
1 changed files with 0 additions and 3 deletions
|
|
@ -345,8 +345,6 @@ App::post('/v1/teams/:teamId/memberships')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$passwordHistory = $project->getAttribute('auths', [])['passwordHistory'] ?? 0;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$userId = ID::unique();
|
$userId = ID::unique();
|
||||||
$invitee = Authorization::skip(fn() => $dbForProject->createDocument('users', new Document([
|
$invitee = Authorization::skip(fn() => $dbForProject->createDocument('users', new Document([
|
||||||
|
|
@ -360,7 +358,6 @@ App::post('/v1/teams/:teamId/memberships')
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'emailVerification' => false,
|
'emailVerification' => false,
|
||||||
'status' => true,
|
'status' => true,
|
||||||
'passwordHistory' => $passwordHistory > 0 ? [Auth::passwordHash(Auth::passwordGenerator(), Auth::DEFAULT_ALGO, Auth::DEFAULT_ALGO_OPTIONS)] : [],
|
|
||||||
'password' => Auth::passwordHash(Auth::passwordGenerator(), Auth::DEFAULT_ALGO, Auth::DEFAULT_ALGO_OPTIONS),
|
'password' => Auth::passwordHash(Auth::passwordGenerator(), Auth::DEFAULT_ALGO, Auth::DEFAULT_ALGO_OPTIONS),
|
||||||
'hash' => Auth::DEFAULT_ALGO,
|
'hash' => Auth::DEFAULT_ALGO,
|
||||||
'hashOptions' => Auth::DEFAULT_ALGO_OPTIONS,
|
'hashOptions' => Auth::DEFAULT_ALGO_OPTIONS,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue