@include('../plugins/limit/access_check.php');
if ($auth->doLogin($cl_login, $cl_password)) {
@include('../plugins/limit/access_check.php');
if ($auth->doLogin($cl_login, $cl_password)) {
$user = new ttUser(null, $auth->getUserId());
// Redirect, depending on user role.
$user = new ttUser(null, $auth->getUserId());
// Redirect, depending on user role.
header('Location: ../admin_groups.php');
} elseif ($user->isClient()) {
header('Location: ../reports.php');
header('Location: ../admin_groups.php');
} elseif ($user->isClient()) {
header('Location: ../reports.php');
$err->add($i18n->get('error.no_groups'));
// Determine whether to show login hint. It is currently used only for Windows LDAP authentication.
$err->add($i18n->get('error.no_groups'));
// Determine whether to show login hint. It is currently used only for Windows LDAP authentication.