diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 1e1444d..f43fec2 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -102,7 +102,7 @@ class RegisterController extends Controller { * @PublicPage */ public function verifyToken($token) { - $email = $this->pendingreg->findByToken($token); + $email = $this->pendingreg->findEmailByToken($token); if ( \OCP\DB::isError($email) ) { return new TemplateResponse('', 'error', array( 'errors' => array(array( diff --git a/db/pendingregist.php b/db/pendingregist.php index f39d14e..5115b15 100644 --- a/db/pendingregist.php +++ b/db/pendingregist.php @@ -25,7 +25,7 @@ class PendingRegist { return $query->execute(array($email))->fetchAll(); } - public function findByToken($token) { + public function findEmailByToken($token) { $query = $this->db->prepareQuery('SELECT `email` FROM `*PREFIX*registration` WHERE `token` = ? '); return $query->execute(array($token))->fetchOne(); }