diff --git a/html/class_passwordRecovery.inc b/html/class_passwordRecovery.inc
index 136a8d35b7a8adeefab522fc56c9b7b027c3666e..c36bcd1fcb69c3b9057fc52915737f2b389d12b1 100644
--- a/html/class_passwordRecovery.inc
+++ b/html/class_passwordRecovery.inc
@@ -515,6 +515,8 @@ class passwordRecovery extends standAlonePage {
     $smarty->assign('email_address', $this->email_address);
     $params = $this->encodeParams(array('uid', 'directory', 'email_address'));
     $smarty->assign('params', $params);
+
+    return $attrs['dn'];
   }
 
   protected function generateAndStoreToken()