]> git.mxchange.org Git - friendica.git/blobdiff - mod/lostpass.php
Bugfix Diaspora: We exited with the wrong return values and the guid for messages...
[friendica.git] / mod / lostpass.php
index a5ef739cd197564b1e72f9090586009decaa908b..37ef3e2f82f6a461bc78d7a38381309a35d67486 100644 (file)
@@ -1,10 +1,12 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/email.php');
 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)
@@ -77,7 +79,7 @@ function lostpass_post(&$a) {
 }
 
 
-function lostpass_content(&$a) {
+function lostpass_content(App $a) {
 
 
        if(x($_GET,'verify')) {
@@ -102,6 +104,8 @@ function lostpass_content(&$a) {
                        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(