Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 25, 2025
1 parent 4582931 commit e544718
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stanford SamlAuth

1.2.1
--------------------------------------------------------------------------------
_Release Date: 2025-02-25_

- Fix validation error with empty field value.

1.2.0
--------------------------------------------------------------------------------
_Release Date: 2025-02-25_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function create(ContainerInterface $container): self {
* {@inheritdoc}
*/
public function validate(mixed $item, Constraint $constraint): void {
if ($this->workgroupApi->connectionSuccessful() && !$this->workgroupApi->isSunetValid($item)) {
if ($item && $this->workgroupApi->connectionSuccessful() && !$this->workgroupApi->isSunetValid($item)) {
$this->context->addViolation($constraint->message);
}
}
Expand Down
2 changes: 1 addition & 1 deletion stanford_samlauth.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: Adds enhancements to SAML Authentication module.
package: Stanford
core_version_requirement: ^10.3 || ^11
version: 1.2.0
version: 1.2.1
dependencies:
- drupal:path_alias
- autologout:autologout
Expand Down

0 comments on commit e544718

Please sign in to comment.