本文整理汇总了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();*/
}