Commit 085aa800f4f8bff723d2888f0736d95f9d017842

Authored by Alex Savenko
1 parent 2d1d9f98

back

app/library/App/Auth/UsernameAccountType.php
@@ -7,7 +7,7 @@ use Phalcon\Di; @@ -7,7 +7,7 @@ use Phalcon\Di;
7 7
8 class UsernameAccountType implements \PhalconApi\Auth\AccountType 8 class UsernameAccountType implements \PhalconApi\Auth\AccountType
9 { 9 {
10 - const NAME = "name"; 10 + const NAME = "username";
11 11
12 public function login($data) 12 public function login($data)
13 { 13 {
app/library/App/Model/User.php
@@ -19,7 +19,7 @@ class User extends \App\Mvc\DateTrackingModel @@ -19,7 +19,7 @@ class User extends \App\Mvc\DateTrackingModel
19 { 19 {
20 return parent::columnMap() + [ 20 return parent::columnMap() + [
21 'id' => 'id', 21 'id' => 'id',
22 - 'name' => 'username', 22 + 'username' => 'username',
23 'pass' => 'pass', 23 'pass' => 'pass',
24 'email' => 'email', 24 'email' => 'email',
25 'role' => 'role' 25 'role' => 'role'