本文整理匯總了PHP中UserAccount::LoadByUserAccountIdPortableUserPin方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserAccount::LoadByUserAccountIdPortableUserPin方法的具體用法?PHP UserAccount::LoadByUserAccountIdPortableUserPin怎麽用?PHP UserAccount::LoadByUserAccountIdPortableUserPin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserAccount
的用法示例。
在下文中一共展示了UserAccount::LoadByUserAccountIdPortableUserPin方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
<?php
require_once '../includes/prepend.inc.php';
$strError = "";
if ($_GET['menu_id']) {
if ($_POST && is_numeric($_POST['user_account_id'])) {
require __DATA_CLASSES__ . '/UserAccount.class.php';
$intUserAccountId = $_POST['user_account_id'];
$objUserAccount = false;
if (QApplication::$TracmorSettings->PortablePinRequired && $_POST['portable_user_pin']) {
$strPortableUserPin = $_POST['portable_user_pin'];
$objUserAccount = UserAccount::LoadByUserAccountIdPortableUserPin($intUserAccountId, $strPortableUserPin);
if (!$objUserAccount) {
// authenticate error
$strError = "That User ID and PIN did not authenticate. Please try again.";
}
} else {
$strError = "You must enter a PIN. Please try again.";
}
if (!QApplication::$TracmorSettings->PortablePinRequired) {
$objUserAccount = UserAccount::LoadByUserAccountId($intUserAccountId);
if (!$objUserAccount) {
// authenticate error
$strError = "That is not a valid User ID. Please try again.";
}
}
if ($objUserAccount) {
$_SESSION['intUserAccountId'] = $objUserAccount->UserAccountId;
// Authenticate user and redirect to proper transaction page based on menu_id
switch ($_GET['menu_id']) {
case 1: