Skip to content

Commit

Permalink
fixup! [Highways England] Initialise single-sign on
Browse files Browse the repository at this point in the history
  • Loading branch information
MorayMySoc committed Aug 16, 2024
1 parent 8722785 commit aaea3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/HighwaysEngland.pm
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ sub social_auth_enabled {
sub user_from_oidc {
my ($self, $payload) = @_;

Check warning on line 218 in perllib/FixMyStreet/Cobrand/HighwaysEngland.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/HighwaysEngland.pm#L218

Added line #L218 was not covered by tests

my $name = join(" ", $payload->{given_name}, $payload->{family_name});
my $name = $payload->{name} ? $payload->{name} : '';
my $email = $payload->{email} ? lc($payload->{email}) : '';

return ($name, $email);

Check warning on line 223 in perllib/FixMyStreet/Cobrand/HighwaysEngland.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/HighwaysEngland.pm#L223

Added line #L223 was not covered by tests
Expand Down

0 comments on commit aaea3a8

Please sign in to comment.