Set password = null when registering via a 3rdParty provider
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Dec 2020 13:10:13 +0000 (14:10 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 23 Dec 2020 13:12:28 +0000 (14:12 +0100)
wcfsetup/install/files/lib/form/RegisterForm.class.php

index 11d0454b074dd0b35a03f7e798a3b62a3bdf7ec9..3c239f6199e811cd5358112f9118c062fe445ff7 100644 (file)
@@ -435,8 +435,8 @@ class RegisterForm extends UserAddForm {
                                break;
                        }
                        
-                       // create fake password
-                       $this->password = Hex::encode(\random_bytes(20));
+                       // Accounts connected to a 3rdParty login do not have passwords.
+                       $this->password = null;
                }
 
                $eventParameters = [