There was a bug, an undefined variable was being used to assign the last
four digits of the day_phone to usr.passwd when this library setting
was being used.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
if ($scope.patron.day_phone &&
$scope.patron.isnew &&
$scope.org_settings['patron.password.use_phone']) {
- $scope.patron.passwd = phone.substr(-4);
+ $scope.patron.passwd = $scope.patron.day_phone.substr(-4);
}
case 'evening_phone' :
case 'other_phone' :