Skip to content

Commit

Permalink
BUGFIX Fixed regression where Member::PasswordEncryption field wouldn…
Browse files Browse the repository at this point in the history
…'t be set to the default
  • Loading branch information
Sean Harvey committed Mar 9, 2012
1 parent 033a1e5 commit d28da56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion security/Member.php
Expand Up @@ -659,7 +659,7 @@ function onBeforeWrite() {
$encryption_details = Security::encrypt_password( $encryption_details = Security::encrypt_password(
$this->Password, // this is assumed to be cleartext $this->Password, // this is assumed to be cleartext
$this->Salt, $this->Salt,
$this->PasswordEncryption, ($this->PasswordEncryption) ? $this->PasswordEncryption : Security::get_password_encryption_algorithm(),
$this $this
); );


Expand Down
2 changes: 1 addition & 1 deletion tests/security/MemberTest.php
Expand Up @@ -627,4 +627,4 @@ function __construct() {
$this->characterStrength(3, array('lowercase','uppercase','digits','punctuation')); $this->characterStrength(3, array('lowercase','uppercase','digits','punctuation'));
} }


} }

0 comments on commit d28da56

Please sign in to comment.