]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User.php
PasswordsettingsAction aligned with FormAction
[quix0rs-gnu-social.git] / classes / User.php
index e1ce33be181dad1e387e3b0143301abd2dfe0c6d..175d945401e2e25538a8ec5526ea1ff50234e743 100644 (file)
@@ -299,7 +299,7 @@ class User extends Managed_DataObject
             }
 
             if (!empty($password)) { // may not have a password for OpenID users
-                $user->password = common_munge_password($password, $id);
+                $user->password = common_munge_password($password);
             }
 
             $result = $user->insert();
@@ -1015,6 +1015,11 @@ class User extends Managed_DataObject
         return $this->getProfile()->isPrivateStream();
     }
 
+    public function hasPassword()
+    {
+        return !empty($this->password);
+    }
+
     public function delPref($namespace, $topic)
     {
         return $this->getProfile()->delPref($namespace, $topic);