陈德本 7 rokov pred
rodič
commit
17db7d1098
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      App/Api/Controller/User/Auth.php

+ 1 - 2
App/Api/Controller/User/Auth.php

@@ -16,11 +16,10 @@ class Auth extends RestfulController
     protected function getData()
     {
         $cookie = $_SESSION['user_key'];
-        if ($cookie) {
+        if (!$cookie) {
             $cookie = md5(time());
             $_SESSION['user_key'] = $cookie;
         }
-//        $_SESSION['user_key']="9f6e6800cfae7749eb6c486619254b9c";
         $this->showSuccess($cookie);
     }