Browse Source

Store the password not the hash

Bob Mottram 8 years ago
parent
commit
5726498f58
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-app-etherpad

+ 1
- 1
src/freedombone-app-etherpad View File

195
     settings_file=/var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json
195
     settings_file=/var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json
196
 
196
 
197
     if ! grep -q "\"$new_username\": {" $settings_file; then
197
     if ! grep -q "\"$new_username\": {" $settings_file; then
198
-        ${PROJECT_NAME}-pass -u $new_username -a etherpad -p "$new_user_password"
198
+        ${PROJECT_NAME}-pass -u $new_username -a etherpad -p "$2"
199
         sed -i "/\"users\": {/a    \"$new_username\": { \"hash\": \"$new_user_password\", \"is_admin\": false }," $settings_file
199
         sed -i "/\"users\": {/a    \"$new_username\": { \"hash\": \"$new_user_password\", \"is_admin\": false }," $settings_file
200
         if grep -q "\"$new_username\": {" $settings_file; then
200
         if grep -q "\"$new_username\": {" $settings_file; then
201
             systemctl restart etherpad
201
             systemctl restart etherpad