浏览代码

fixed login get user by username

tags/0.1.0
Robin Thoni 10 年前
父节点
当前提交
917108440a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/Auth/DataAccess/LuticateUsersDataAccess.php

+ 1
- 1
src/Auth/DataAccess/LuticateUsersDataAccess.php 查看文件

18
      */
18
      */
19
     public static function getByUsername($username)
19
     public static function getByUsername($username)
20
     {
20
     {
21
-        $user = LuticateUsers::where("username", "=", $username);
21
+        $user = LuticateUsers::where("username", "=", $username)->first();
22
         if (is_null($user))
22
         if (is_null($user))
23
             return null;
23
             return null;
24
         return $user->toDbo();
24
         return $user->toDbo();

正在加载...
取消
保存