From 2a8ff61496b7667c113c6413adfaf37e112231c1 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Fri, 3 Oct 2014 16:05:57 +0800 Subject: [PATCH] Rename function: PendingRegist::findByToken -> findEmailByToken --- controller/registercontroller.php | 2 +- db/pendingregist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }