fixed password hashing (1562426)
This commit is contained in:
		
							parent
							
								
									1ccfbbde8d
								
							
						
					
					
						commit
						6b4410cf77
					
				|  | @ -792,7 +792,7 @@ class posixAccount extends baseModule { | |||
| 			} | ||||
| 			else { | ||||
| 				$this->clearTextPassword = $_POST['userPassword']; | ||||
| 				$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword']); | ||||
| 				$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword'], true, $this->moduleSettings['posixAccount_pwdHash'][0]); | ||||
| 			} | ||||
| 		} | ||||
| 		return $errors; | ||||
|  |  | |||
|  | @ -674,7 +674,7 @@ class posixGroup extends baseModule { | |||
| 				$errors[] = $this->messages['userPassword'][1]; | ||||
| 			} | ||||
| 			else { | ||||
| 				$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword']); | ||||
| 				$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword'], true, $this->moduleSettings['posixAccount_pwdHash'][0]); | ||||
| 			} | ||||
| 		return $errors; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue