Jelajahi Sumber

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.
Visman 2 tahun lalu
induk
melakukan
60c66eac01
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Models/Pages/RegLog.php

+ 1 - 1
app/Models/Pages/RegLog.php

@@ -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;