Changeset 3458 for trunk/modules/auth
- Timestamp:
- 09/14/2008 02:05:01 PM (3 months ago)
- Files:
-
- 1 modified
-
trunk/modules/auth/classes/auth.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/classes/auth.php
r3399 r3458 137 137 * Log out a user by removing the related session variables. 138 138 * 139 * @param boolean completely destroy the session139 * @param boolean completely destroy the session 140 140 * @return boolean 141 141 */ … … 194 194 * Perform a hash, using the configured method. 195 195 * 196 * @param string string to hash196 * @param string string to hash 197 197 * @return string 198 198 */ 199 p rotectedfunction hash($str)199 public function hash($str) 200 200 { 201 201 return hash($this->config['hash_method'], $str); … … 208 208 * @return string 209 209 */ 210 p rotectedfunction find_salt($password)210 public function find_salt($password) 211 211 { 212 212 $salt = ''; … … 214 214 foreach ($this->config['salt_pattern'] as $i => $offset) 215 215 { 216 // Find salt characters ... take a good long look..216 // Find salt characters, take a good long look... 217 217 $salt .= substr($password, $offset + $i, 1); 218 218 }
