Skip to content
Browse files

Without the break, the password will always be generated with MD5 reg…

…ardless if SHA is chosen.
  • Loading branch information...
1 parent c649903 commit a4676133bf4accda4b7d860804cccaa099c9b407 @simonharrer simonharrer committed Apr 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 libraries/joomla/client/ldap.php
View
1 libraries/joomla/client/ldap.php
@@ -628,6 +628,7 @@ public static function generatePassword($password, $type = 'md5')
{
case 'sha':
$userpassword = '{SHA}' . base64_encode(pack('H*', sha1($password)));
+ break;
case 'md5':
default:
$userpassword = '{MD5}' . base64_encode(pack('H*', md5($password)));

0 comments on commit a467613

Please sign in to comment.
Something went wrong with that request. Please try again.