flagflag  
27: 2021-07-26 (Mon) 15:00:58 iseki source 28: 2021-08-01 (Sun) 11:41:01 iseki source
Line 126: Line 126:
 157            # If Canvas is running in anonymous mode, we\'ll still want the \'user_id\' (which is the `lti_user_id``)  157            # If Canvas is running in anonymous mode, we\'ll still want the \'user_id\' (which is the `lti_user_id``)
 158  158
- 159            canvas_id = handler.get_body_argument(\'custom_canvas_user_id\', default=None) + 159            canvas_id = handler.get_body_argument('custom_canvas​_user_id', default=None) 
- 160 +          product_code = handler.get_body_argument(\'tool_consumer_info_product_family_code\', default=None)+ 160 +          product_code = handler.get_body_argument('tool_consumer​_info_product_family_code', default=None)
 161  161
 162            if canvas_id is not None:  162            if canvas_id is not None:
- 163                user_id = handler.get_body_argument(\'custom_canvas_user_id\') + 163                user_id = handler.get_body_argument('custom_canvas​_user_id') 
- 164 +          elif \'moodle\' in product_code: + 164 +          elif 'moodle' in product_code: 
- 165 +                user_id = handler.get_body_argument(\'ext_user_username\')+ 165 +                user_id = handler.get_body_argument('ext_user_user​name')
 166            else:  166            else:
- 167                user_id = handler.get_body_argument(\'user_id\')+ 167                user_id = handler.get_body_argument('user_id')
 168  168


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

41 user(s) are online (6 user(s) are browsing xpwiki)

Members: 0
Guests: 41

more...

Access Counter

Today : 2398239823982398
Yesterday : 8599859985998599
Total : 2364940423649404236494042364940423649404236494042364940423649404
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com