When changing a patron's phone number, only modify the password for new
patrons when the org setting patron.password.use_phone is enabled.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
}
$scope.day_phone_changed = function(phone) {
- if (phone && $scope.org_settings['patron.password.use_phone']) {
- $scope.patron.passwd = phone.substr(-4);
+ if (phone && $scope.patron.isnew &&
+ $scope.org_settings['patron.password.use_phone']) {
+ $scope.patron.passwd = phone.substr(-4);
}
}