ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.ilLoginPageAuthStrategy.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
21{
22 public function __construct(
23 private ilCtrlInterface $ctrl,
24 private ilLogger $logger,
25 private ilLanguage $lng
26 ) {
27 }
28
29 public function getName(): string
30 {
31 return 'ilias';
32 }
33
34 public function isActive(): bool
35 {
36 return true;
37 }
38
39 public function handleLogin(string $redirection_target): void
40 {
41 $this->logger->info('Redirect to login authentication');
42 ilSession::set('success', $this->lng->txt('ecs_login_success_ilias'));
43 $this->ctrl->redirectToURL('login.php?target=' . $redirection_target);
44 }
45}
language handling
Component logger with individual log levels by component id.
__construct(private ilCtrlInterface $ctrl, private ilLogger $logger, private ilLanguage $lng)
handleLogin(string $redirection_target)
static set(string $a_var, $a_val)
Set a value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $lng
Definition: privfeed.php:31