Added ticket 391, password storage configuration variable for Mercurial.
This commit is contained in:
@@ -97,7 +97,8 @@ class IDF_Plugin_SyncMercurial
|
||||
}
|
||||
$ht = new File_Passwd_Authbasic($passwd_file);
|
||||
$ht->load();
|
||||
$ht->setMode(FILE_PASSWD_SHA);
|
||||
$ht->setMode(Pluf::f('idf_plugin_syncmercurial_passwd_mode',
|
||||
FILE_PASSWD_SHA));
|
||||
if ($ht->userExists($user->login)) {
|
||||
$ht->changePasswd($user->login, $this->getMercurialPass($user));
|
||||
} else {
|
||||
@@ -138,7 +139,8 @@ class IDF_Plugin_SyncMercurial
|
||||
throw new Exception (sprintf(__('%s does not exist or is not writable.'), $passwd_file));
|
||||
}
|
||||
$ht = new File_Passwd_Authbasic($passwd_file);
|
||||
$ht->setMode(FILE_PASSWD_SHA);
|
||||
$ht->setMode(Pluf::f('idf_plugin_syncmercurial_passwd_mode',
|
||||
FILE_PASSWD_SHA));
|
||||
$ht->load();
|
||||
$mem = $project->getMembershipData();
|
||||
$members = array_merge((array)$mem['members'], (array)$mem['owners'],
|
||||
|
Reference in New Issue
Block a user