本文整理匯總了PHP中USER::passwordRecovery方法的典型用法代碼示例。如果您正苦於以下問題:PHP USER::passwordRecovery方法的具體用法?PHP USER::passwordRecovery怎麽用?PHP USER::passwordRecovery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類USER
的用法示例。
在下文中一共展示了USER::passwordRecovery方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: USER
<?php
include_once 'php/config.php';
$user = new USER($conn);
define("PAGENAME", "Request New Password");
include_once 'include/header.php';
//if the request input clicked
if (isset($_POST['send_password'])) {
//check if the email is a proper email
$email = $_POST['email'];
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
//run the query
$user->passwordRecovery($email);
$message = "If your email is valid, we will send you a message. Please check your spam folder too!";
}
}
?>
<header class="big-header">
<h1 class="no-margin">Forgot your password?</h1>
</header>
<div class="intro bottom-margin">
<form method="post" class="inputs feat first">
<div class="light-green">
<h2>Just fill in your email</h2>
</div>
<?php
//feedback
if (isset($message)) {
?>