Browse Source

Remet User::generateSalt()

Le changement de mot de passe est impossible sans cette méthode.
Christophe HENRY 4 years ago
parent
commit
d118f60cfb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      User.class.php

+ 4 - 0
User.class.php

@@ -175,6 +175,10 @@ class User extends MysqlEntity{
         return $result;
     }
 
+    static function generateSalt() {
+        return ''.mt_rand().mt_rand();
+    }
+
     function setStayConnected() {
         ///@TODO: set the current web directory, here and on del
         setcookie('leedStaySignedIn', $this->getToken(), time()+31536000);