Making the username and password fields optional

for email notifications
This commit is contained in:
Jared Tabor
2016-08-10 14:08:33 -07:00
parent 9ab3aae59d
commit d8c713d5ef
4 changed files with 13 additions and 5 deletions

View File

@@ -223,6 +223,12 @@ export default
if(field.type === 'number'){
$scope[i] = Number($scope[i]);
}
if(field.name === "username" && $scope.notification_type.value === "email" && value === null){
$scope[i] = "";
}
if(field.type === 'sensitive' && value === null){
$scope[i] = "";
}
return $scope[i];
}