require_once('include/enotify.php');
require_once('include/text.php');
-function lostpass_post(&$a) {
+function lostpass_post(App &$a) {
$loginame = notags(trim($_POST['login-name']));
if(! $loginame)
dbesc($loginame)
);
- if(! dbm::is_result($r)) {
+ if (! dbm::is_result($r)) {
notice( t('No valid account found.') . EOL);
goaway(z_root());
}
}
-function lostpass_content(&$a) {
+function lostpass_content(App &$a) {
if(x($_GET,'verify')) {
$r = q("SELECT * FROM `user` WHERE `pwdreset` = '%s' LIMIT 1",
dbesc($hash)
);
- if(! dbm::is_result($r)) {
+ if (! dbm::is_result($r)) {
$o = t("Request could not be verified. \x28You may have previously submitted it.\x29 Password reset failed.");
return $o;
}