Rename function: PendingRegist::findByToken -> findEmailByToken
This commit is contained in:
parent
c162bbb228
commit
2a8ff61496
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue