Skip to content

Commit

Permalink
Remet User::generateSalt()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbgodin committed Apr 7, 2017
2 parents eaa60f4 + d118f60 commit 7f99ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions User.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ static function existAuthToken($auth=null){
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);
Expand Down

0 comments on commit 7f99ea7

Please sign in to comment.