[LON-CAPA-cvs] cvs: loncom /auth migrateuser.pm
raeburn
raeburn at source.lon-capa.org
Tue Apr 17 15:48:18 EDT 2018
raeburn Tue Apr 17 19:48:18 2018 EDT
Modified files:
/loncom/auth migrateuser.pm
Log:
- Bug 6754 LON-CAPA as LTI Provider
- LTI launch can be for a published .sequence
Index: loncom/auth/migrateuser.pm
diff -u loncom/auth/migrateuser.pm:1.30 loncom/auth/migrateuser.pm:1.31
--- loncom/auth/migrateuser.pm:1.30 Sun Apr 15 00:14:19 2018
+++ loncom/auth/migrateuser.pm Tue Apr 17 19:48:18 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Starts a user off based of an existing token.
#
-# $Id: migrateuser.pm,v 1.30 2018/04/15 00:14:19 raeburn Exp $
+# $Id: migrateuser.pm,v 1.31 2018/04/17 19:48:18 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -484,7 +484,8 @@
if ($data{'origurl'} ne '') {
$next_url .= '&orgurl='.&escape($data{'origurl'});
if ($data{'lti.login'}) {
- if ($data{'origurl'} =~ m{/default_\d+\.sequence$}) {
+ if (($data{'origurl'} =~ m{/default_\d+\.sequence$}) ||
+ ($data{'origurl'} =~ m{^/res/.+\.sequence$})) {
$next_url .= '&navmap=1';
}
}
More information about the LON-CAPA-cvs
mailing list