Remove password hash generation for OAuth

May be needed if a password is requested to confirm the action. In this case, you will need to confirm the action via OAuth.
This commit is contained in:
Visman 2023-05-14 17:36:32 +07:00
parent 9f2923adf8
commit 60c66eac01

View file

@ -103,7 +103,7 @@ class RegLog extends Page
$user = $this->c->users->create();
$user->username = $this->nameGenerator($provider);
$user->password = \password_hash($this->c->Secury->randomPass(72), \PASSWORD_DEFAULT);
$user->password = 'oauth';
$user->group_id = $this->c->config->i_default_user_group;
$user->email = $provider->userEmail;
$user->email_confirmed = $provider->userEmailVerifed ? 1 : 0;