Browse Source

ensure user logged in logout

tags/0.1.0
Robin Thoni 8 years ago
parent
commit
22cccecb30
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/Auth/Business/LuticateBusiness.php

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

@@ -9,6 +9,7 @@
9 9
 namespace Luticate\Auth\Business;
10 10
 
11 11
 use Illuminate\Http\Request;
12
+use Luticate\Auth\DBO\LuticatePermissions;
12 13
 use Luticate\Auth\DBO\LuticateUsersDbo;
13 14
 use Luticate\Utils\LuController;
14 15
 use Luticate\Utils\LuRoute;
@@ -81,7 +82,7 @@ class LuticateBusiness
81 82
         $prefix = "/luticate";
82 83
         $ns = 'Luticate\Auth\Business\\';
83 84
         $route->post("$prefix/login", "${ns}LuticateUsersBusiness", "login");
84
-        $route->put("$prefix/logout", "${ns}LuticateUsersBusiness", "logout");
85
+        $route->put("$prefix/logout", "${ns}LuticateUsersBusiness", "logout", LuticatePermissions::USER_LOGIN);
85 86
         $route->post("$prefix/add", "${ns}LuticateUsersBusiness", "add");
86 87
     }
87 88
 }

Loading…
Cancel
Save