Browse Source

Do not allow to change the password of a non-hestia user.

Raphael Schneeberger 6 years ago
parent
commit
63931b68ee
2 changed files with 5 additions and 0 deletions
  1. 1 0
      CHANGELOG.md
  2. 4 0
      bin/v-change-user-password

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
 
 ### Bugfixes
 - Disable Apache2 Server Status Module by default.
+- Do not allow to change the password of a non-hestia user. Thanks to Alexandre Zanni!
 
 ## [1.1.1] - 2020-03-24 - Hotfix
 ### Features

+ 4 - 0
bin/v-change-user-password

@@ -13,6 +13,10 @@
 user=$1
 password=$2; HIDE=2
 
+# Importing system enviroment  as we run this script
+# mostly by cron wich not read it by itself
+source /etc/profile
+
 # Includes
 source $HESTIA/func/main.sh
 source $HESTIA/conf/hestia.conf