File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/Symfony/Component/Security/Guard Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ interface GuardAuthenticatorInterface extends AuthenticationEntryPointInterface
39
39
* Whatever value you return here will be passed to getUser() and checkCredentials()
40
40
*
41
41
* For example, for a form login, you might:
42
- *
43
- * return array(
44
- * 'username' => $request->request->get('_username'),
45
- * 'password' => $request->request->get('_password'),
46
- * );
42
+ *
43
+ * if ($request->request->has('_username')) {
44
+ * return array(
45
+ * 'username' => $request->request->get('_username'),
46
+ * 'password' => $request->request->get('_password'),
47
+ * );
48
+ * } else {
49
+ * return;
50
+ * }
47
51
*
48
52
* Or for an API token that's on a header, you might use:
49
53
*
You can’t perform that action at this time.
0 commit comments