Browse Source

added current user injection

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
bc94b2aa6b
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/Auth/Business/LuticateBusiness.php

+ 4
- 1
src/Auth/Business/LuticateBusiness.php View File

10
 
10
 
11
 use Illuminate\Http\Request;
11
 use Illuminate\Http\Request;
12
 use Luticate\Auth\DBO\LuticateUsersDbo;
12
 use Luticate\Auth\DBO\LuticateUsersDbo;
13
+use Luticate\Utils\LuController;
13
 use Luticate\Utils\LuRoute;
14
 use Luticate\Utils\LuRoute;
14
 
15
 
15
 class LuticateBusiness
16
 class LuticateBusiness
16
 {
17
 {
17
-    const TOKEN_HEADER = "X-Authentication";
18
+    const TOKEN_HEADER = "X-Authorization";
18
 
19
 
19
     /**
20
     /**
20
      * @var LuticateUsersDbo
21
      * @var LuticateUsersDbo
42
             }
43
             }
43
         }
44
         }
44
 
45
 
46
+        LuController::$parameters["user"] = self::$_currentUser;
47
+
45
         if (self::$_currentUser == null && count($permissions) != 0) {
48
         if (self::$_currentUser == null && count($permissions) != 0) {
46
             return false;
49
             return false;
47
         }
50
         }

Loading…
Cancel
Save