Skip to content

Commit 54ee18b

Browse files
committed
docs: add @todo in sample code
1 parent 37d8c71 commit 54ee18b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/addons/jwt.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,17 @@ class LoginController extends BaseController
151151

152152
// Check the credentials
153153
$result = $authenticator->check($credentials);
154+
155+
// Credentials mismatch.
154156
if (! $result->isOK()) {
157+
// @TODO Record a failed login attempt
158+
155159
return $this->failUnauthorized($result->reason());
156160
}
157161

158-
// Login is successful.
162+
// Credentials match.
163+
// @TODO Record a successful login attempt
164+
159165
$user = $result->extraInfo();
160166

161167
/** @var JWTManager $manager */

0 commit comments

Comments
 (0)