File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/Webapi/Model/Authorization Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function __construct(
99
99
}
100
100
101
101
/**
102
- * { @inheritdoc}
102
+ * @inheritdoc
103
103
*/
104
104
public function getUserId ()
105
105
{
@@ -108,7 +108,7 @@ public function getUserId()
108
108
}
109
109
110
110
/**
111
- * { @inheritdoc}
111
+ * @inheritdoc
112
112
*/
113
113
public function getUserType ()
114
114
{
@@ -137,7 +137,7 @@ private function isTokenExpired(Token $token): bool
137
137
return false ;
138
138
}
139
139
140
- if ($ this -> date -> timestamp ($ token ->getCreatedAt ()) < ($ this ->date ->gmtTimestamp () - $ tokenTtl * 3600 )) {
140
+ if (strtotime ($ token ->getCreatedAt ()) < ($ this ->date ->gmtTimestamp () - $ tokenTtl * 3600 )) {
141
141
return true ;
142
142
}
143
143
@@ -187,6 +187,8 @@ protected function processRequest()
187
187
}
188
188
189
189
/**
190
+ * Set user data based on user type received from token data.
191
+ *
190
192
* @param Token $token
191
193
* @return void
192
194
*/
You can’t perform that action at this time.
0 commit comments