Add env variable to disallow pwd change (#4325)

This commit is contained in:
jekkos committed 2025-11-21 23:46:48 +01:00
1 parent 83af580d40
commit ce73d9bb31
1 file changed
+1 -1
+1 -1
View File
@@ -520,7 +520,7 @@ class Employee extends Person
{
$success = false;
if (ENVIRONMENT != 'testing') {
if (!getenv('DISALLOW_PASSWORD_CHANGE')) {
$this->db->transStart();
$builder = $this->db->table('employees');