Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 73... Línea 73...
73
        $typeoflogin != tool_mobile\api::LOGIN_VIA_BROWSER &&
73
        $typeoflogin != tool_mobile\api::LOGIN_VIA_BROWSER &&
74
        $typeoflogin != tool_mobile\api::LOGIN_VIA_EMBEDDED_BROWSER) {
74
        $typeoflogin != tool_mobile\api::LOGIN_VIA_EMBEDDED_BROWSER) {
75
    throw new moodle_exception('pluginnotenabledorconfigured', 'tool_mobile');
75
    throw new moodle_exception('pluginnotenabledorconfigured', 'tool_mobile');
76
}
76
}
Línea 77... Línea -...
77
 
-
 
78
// If the user is using the inapp (embedded) browser, we need to set the Secure and Partitioned attributes to the session cookie.
-
 
79
if (\core_useragent::is_moodle_app()) {
-
 
80
    \core\session\utility\cookie_helper::add_attributes_to_cookie_response_header(
-
 
81
        "MoodleSession{$CFG->sessioncookie}",
-
 
82
        ['Secure', 'Partitioned'],
-
 
83
    );
-
 
84
}
-
 
85
 
77
 
Línea 86... Línea 78...
86
require_login(0, false);
78
require_login(0, false);
87
 
79