Add tail to password when registering via OAuth

This commit is contained in:
Visman 2023-05-19 18:05:10 +07:00
parent 1ae5c7a594
commit 4810de11d8

View file

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