Store the password not the hash
This commit is contained in:
parent
ef0b5366de
commit
5726498f58
|
@ -195,7 +195,7 @@ function add_user_etherpad {
|
|||
settings_file=/var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json
|
||||
|
||||
if ! grep -q "\"$new_username\": {" $settings_file; then
|
||||
${PROJECT_NAME}-pass -u $new_username -a etherpad -p "$new_user_password"
|
||||
${PROJECT_NAME}-pass -u $new_username -a etherpad -p "$2"
|
||||
sed -i "/\"users\": {/a \"$new_username\": { \"hash\": \"$new_user_password\", \"is_admin\": false }," $settings_file
|
||||
if grep -q "\"$new_username\": {" $settings_file; then
|
||||
systemctl restart etherpad
|
||||
|
|
Loading…
Reference in New Issue