1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\StandardLoginFormWebclient; |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | class Module extends \Aurora\System\Module\AbstractWebclientModule |
20: | { |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | public function GetSettings() |
28: | { |
29: | \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::Anonymous); |
30: | |
31: | return array( |
32: | 'ServerModuleName' => $this->getConfig('ServerModuleName', ''), |
33: | 'HashModuleName' => $this->getConfig('HashModuleName', ''), |
34: | 'CustomLoginUrl' => $this->getConfig('CustomLoginUrl', ''), |
35: | 'DemoLogin' => $this->getConfig('DemoLogin', ''), |
36: | 'DemoPassword' => $this->getConfig('DemoPassword', ''), |
37: | 'InfoText' => $this->getConfig('InfoText', ''), |
38: | 'BottomInfoHtmlText' => $this->getConfig('BottomInfoHtmlText', ''), |
39: | 'LoginSignMeType' => $this->getConfig('LoginSignMeType', 0), |
40: | 'AllowChangeLanguage' => $this->getConfig('AllowChangeLanguage', true), |
41: | 'UseDropdownLanguagesView' => $this->getConfig('UseDropdownLanguagesView', false), |
42: | ); |
43: | } |
44: | |
45: | public function Login($Login, $Password, $Language = '', $SignMe = false) |
46: | { |
47: | return \Aurora\Modules\Core\Module::Decorator()->Login($Login, $Password, $Language, $SignMe); |
48: | } |
49: | |
50: | } |
51: | |