Skip to content

Commit 70d9ea2

Browse files
committed
Fix a typo.
1 parent a3590d6 commit 70d9ea2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/WeBWorK/Authen/LTIAdvantage.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ sub get_credentials ($self) {
205205
}
206206

207207
# Get the target_link_uri from the claims.
208-
$c->stash->{LTILauncRedirect} = $claims->{'https://purl.imsglobal.org/spec/lti/claim/target_link_uri'};
208+
$c->stash->{LTILaunchRedirect} = $claims->{'https://purl.imsglobal.org/spec/lti/claim/target_link_uri'};
209209

210-
unless (defined $c->stash->{LTILauncRedirect}) {
210+
unless (defined $c->stash->{LTILaunchRedirect}) {
211211
$self->{error} = $c->maketext(
212212
'There was an error during the login process. Please speak to your instructor or system administrator.');
213213
warn 'LTI is not properly configured (failed to obtain target_link_uri). '
@@ -218,7 +218,7 @@ sub get_credentials ($self) {
218218

219219
# Get the courseID from the target_link_uri and verify that it is the same as the one that was in the state.
220220
my $location = $c->location;
221-
my $target = $c->url_for($c->stash->{LTILauncRedirect})->path;
221+
my $target = $c->url_for($c->stash->{LTILaunchRedirect})->path;
222222
my $courseID;
223223
$courseID = $1 if $target =~ m|$location/([^/]*)|;
224224

lib/WeBWorK/ContentGenerator/LTIAdvantage.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sub login ($c) {
2424
}
2525

2626
sub launch ($c) {
27-
return $c->redirect_to($c->systemLink($c->url_for($c->stash->{LTILauncRedirect})));
27+
return $c->redirect_to($c->systemLink($c->url_for($c->stash->{LTILaunchRedirect})));
2828
}
2929

3030
sub keys ($c) {

0 commit comments

Comments
 (0)