From 1dd8f6369326a790b20299dbd0086a7ea1bfeec7 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2017 12:35:22 +0200 Subject: [PATCH] username => name in auth --- app/library/App/Auth/UsernameAccountType.php | 2 +- app/library/App/Model/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/App/Auth/UsernameAccountType.php b/app/library/App/Auth/UsernameAccountType.php index e54f6e7..999c870 100755 --- a/app/library/App/Auth/UsernameAccountType.php +++ b/app/library/App/Auth/UsernameAccountType.php @@ -7,7 +7,7 @@ use Phalcon\Di; class UsernameAccountType implements \PhalconApi\Auth\AccountType { - const NAME = "name"; + const NAME = "username"; public function login($data) { diff --git a/app/library/App/Model/User.php b/app/library/App/Model/User.php index 81dd212..f8e0f42 100755 --- a/app/library/App/Model/User.php +++ b/app/library/App/Model/User.php @@ -19,7 +19,7 @@ class User extends \App\Mvc\DateTrackingModel { return parent::columnMap() + [ 'id' => 'id', - 'name' => 'name', + 'username' => 'name', 'pass' => 'pass', 'email' => 'email', 'role' => 'role' -- libgit2 0.21.4