<?php
+use Friendica\App;
+
require_once('include/email.php');
require_once('include/enotify.php');
require_once('include/text.php');
-function lostpass_post(App &$a) {
+function lostpass_post(App $a) {
$loginame = notags(trim($_POST['login-name']));
if(! $loginame)
}
-function lostpass_content(App &$a) {
+function lostpass_content(App $a) {
if(x($_GET,'verify')) {
dbesc($new_password_encoded),
intval($uid)
);
+
+ /// @TODO Is dbm::is_result() okay here?
if ($r) {
$tpl = get_markup_template('pwdreset.tpl');
$o .= replace_macros($tpl,array(