From 6a47694344b17d7498d390ca11354f3370cd6416 Mon Sep 17 00:00:00 2001 From: "m.fu" Date: Thu, 26 Mar 2009 22:15:29 +0000 Subject: Added #408798 by fasdalf@fasdalf.ru : request for windows support windows does not support crypt password hash added support for SHA-1 password hash which is supported by windows. Fixed : group file not allways updated. --- HTPasswdSync.module | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 3 deletions(-) (limited to 'HTPasswdSync.module') diff --git a/HTPasswdSync.module b/HTPasswdSync.module index 7945816..d7cb615 100644 --- a/HTPasswdSync.module +++ b/HTPasswdSync.module @@ -1,7 +1,13 @@ -?php + 'htgroup')), '#required' => TRUE, ); - $form['htpasswdsync_roles'] = array( + $form['htpasswdsync_hash'] = array( + '#type' => 'radios', + '#title' => t('password hashing algorythm'), + '#description' => t("How shall the password be hashed (crypt for unix, SHA1 for all)"), + '#options' => _htpasswdsync_hashes(), + '#default_value' => _htpasswdsync_hash(), + ); + $form['htpasswdsync_roles'] = array( '#type' => 'checkboxes', '#title' => t('Roles to be exported in htgroup'), '#default_value' => _htpasswdsync_roles(), -- cgit v1.2.3