Changeset 619 for trunk/Modules/Portal
- Timestamp:
- Dec 26, 2013, 7:37:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r599 r619 86 86 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 87 87 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''), 88 'StayLogged' => array('Type' => 'Boolean', 'Caption' => 'Zůstat přihlášen', 'Default' => '0'), 88 89 ), 89 90 )); … … 242 243 $Form->SetClass('UserLogin'); 243 244 $Form->OnSubmit = '?Action=Login'; 244 $Result = $this->System->User->Login($_POST['Username'], $_POST['Password']); 245 if($_POST['StayLogged'] == 0) $StayLogged = true; 246 else $StayLogged = false; 247 $Result = $this->System->User->Login($_POST['Username'], $_POST['Password'], $StayLogged); 245 248 $Output .= $this->SystemMessage('Přihlášení', $Result); 246 249 if($Result <> USER_LOGGED_IN)
Note:
See TracChangeset
for help on using the changeset viewer.