浏览代码

logout method

tags/0.1.0
Robin Thoni 9 年前
父节点
当前提交
4505931c1a
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11
    0
      src/Auth/Business/LuticateUsersBusiness.php

+ 11
- 0
src/Auth/Business/LuticateUsersBusiness.php 查看文件

@@ -67,6 +67,17 @@ class LuticateUsersBusiness extends LuBusiness {
67 67
         return $user;
68 68
     }
69 69
 
70
+    /**
71
+     * @param $user LuticateUsersDbo
72
+     * @return bool
73
+     */
74
+    public static function logout($user)
75
+    {
76
+        $user->setSalt(self::getSalt());
77
+        LuticateUsersDataAccess::editById($user->getId(), $user);
78
+        return true;
79
+    }
80
+
70 81
     public static function add($username, $email, $password)
71 82
     {
72 83
         $hash = self::hashPassword($password);

正在加载...
取消
保存