chamilo/chamilo-lms

View on GitHub
public/plugin/userremoteservice/redirect.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/* For licensing terms, see /license.txt */

require_once __DIR__.'/config.php';

if (!api_user_is_login()) {
    api_not_allowed(true);
}

$plugin = UserRemoteServicePlugin::create();

header('Location: '.$plugin->getActiveServiceSpecificUserUrl());
exit;