File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -152,15 +152,17 @@ sub verify {
152
152
debug(' BEGIN VERIFY' );
153
153
154
154
return $self -> call_next_authen_method if !$self -> request_has_data_for_this_verification_module;
155
- my $authen_ref = ref ($c -> authen);
156
- if ($c -> ce-> {courseName } eq ' admin' && !(grep (/ ^$authen_ref $ / , @{ $c -> ce-> {authen }{admin_module } }))) {
155
+ my $authen_ref = ref ($self );
156
+ if ($c -> ce-> {courseName } eq $c -> ce-> {admin_course_id }
157
+ && !(grep {/ ^$authen_ref $ / } @{ $c -> ce-> {authen }{admin_module } }))
158
+ {
157
159
$self -> write_log_entry(" Cannot authenticate into admin course using $authen_ref ." );
158
160
$c -> stash(
159
161
authen_error => $c -> maketext(
160
162
' There was an error during the login process. Please speak to your instructor or system administrator.'
161
163
)
162
164
);
163
- return ( $self -> call_next_authen_method() );
165
+ return $self -> call_next_authen_method();
164
166
}
165
167
166
168
$self -> {was_verified } = $self -> do_verify;
You can’t perform that action at this time.
0 commit comments