Changeset 963 for trunk/Modules/User
- Timestamp:
- Feb 3, 2024, 11:21:34 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserModel.php
r954 r963 245 245 setcookie('LoginUserId', $Row['Id'], time()+365*24*60*60, $this->System->Link('/')); 246 246 setcookie('LoginHash', sha1($Row['Id'].$StayLoggedSalt), time()+365*24*60*60, $this->System->Link('/')); 247 } else { 247 } else 248 { 248 249 setcookie('LoginUserId', '', time() - 3600, $this->System->Link('/')); 249 250 setcookie('LoginHash', '', time() - 3600, $this->System->Link('/')); … … 255 256 } 256 257 } else $Result = USER_NOT_REGISTRED; 258 259 // Wait some minimal time if not able to log in to avoid brute forcing passwords 260 if ($Result != USER_LOGGED_IN) sleep(1); 261 257 262 return $Result; 258 263 }
Note:
See TracChangeset
for help on using the changeset viewer.