1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\StandardLoginFormWebclient; |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | class Module extends \Aurora\System\Module\AbstractWebclientModule |
22: | { |
23: | |
24: | |
25: | |
26: | |
27: | public static function getInstance() |
28: | { |
29: | return parent::getInstance(); |
30: | } |
31: | |
32: | |
33: | |
34: | |
35: | public static function Decorator() |
36: | { |
37: | return parent::Decorator(); |
38: | } |
39: | |
40: | |
41: | |
42: | |
43: | public function getModuleSettings() |
44: | { |
45: | return $this->oModuleSettings; |
46: | } |
47: | |
48: | |
49: | |
50: | |
51: | |
52: | |
53: | public function GetSettings() |
54: | { |
55: | \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::Anonymous); |
56: | |
57: | return array( |
58: | 'ServerModuleName' => $this->oModuleSettings->ServerModuleName, |
59: | 'HashModuleName' => $this->oModuleSettings->HashModuleName, |
60: | 'CustomLoginUrl' => $this->oModuleSettings->CustomLoginUrl, |
61: | 'DemoLogin' => $this->oModuleSettings->DemoLogin, |
62: | 'DemoPassword' => $this->oModuleSettings->DemoPassword, |
63: | 'InfoText' => $this->oModuleSettings->InfoText, |
64: | 'BottomInfoHtmlText' => $this->oModuleSettings->BottomInfoHtmlText, |
65: | 'LoginSignMeType' => $this->oModuleSettings->LoginSignMeType, |
66: | 'AllowChangeLanguage' => $this->oModuleSettings->AllowChangeLanguage, |
67: | 'UseDropdownLanguagesView' => $this->oModuleSettings->UseDropdownLanguagesView, |
68: | ); |
69: | } |
70: | |
71: | public function Login($Login, $Password, $Language = '', $SignMe = false) |
72: | { |
73: | $mResult = \Aurora\Modules\Core\Module::Decorator()->Login($Login, $Password, $Language, $SignMe); |
74: | |
75: | |
76: | return $mResult; |
77: | } |
78: | |
79: | } |
80: | |