本文整理匯總了PHP中DataValidator::validate_password_modified方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataValidator::validate_password_modified方法的具體用法?PHP DataValidator::validate_password_modified怎麽用?PHP DataValidator::validate_password_modified使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataValidator
的用法示例。
在下文中一共展示了DataValidator::validate_password_modified方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
*/
$neededObjAr = array(AMA_TYPE_AUTHOR => array('layout'));
require_once ROOT_DIR . '/include/module_init.inc.php';
$self = whoami();
include_once 'include/author_functions.inc.php';
/*
* YOUR CODE HERE
*/
require_once ROOT_DIR . '/include/Forms/UserProfileForm.inc.php';
$languages = Translator::getLanguagesIdAndName();
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST') {
$form = new UserProfileForm($languages);
$form->fillWithPostData();
$password = trim($_POST['password']);
$passwordcheck = trim($_POST['passwordcheck']);
if (DataValidator::validate_password_modified($password, $passwordcheck) === FALSE) {
$message = translateFN('Le password digitate non corrispondono o contengono caratteri non validi.');
header("Location: edit_author.php?message={$message}");
exit;
}
if ($form->isValid()) {
$userObj->fillWithArrayData($_POST);
MultiPort::setUser($userObj, array(), true);
/* unset $_SESSION['service_level'] to reload it with the correct user language translation */
unset($_SESSION['service_level']);
$help = translateFN('Dati salvati');
/*$navigationHistoryObj = $_SESSION['sess_navigation_history'];
$location = $navigationHistoryObj->lastModule();
header('Location: ' . $location);
exit();*/
}