Commit ae12045
committed
feature #266 Make login form (nikophil)
This PR was squashed before being merged into the 1.0-dev branch (closes #266).
Discussion
----------
Make login form
Improvements for the command `make:auth` in order to create a form login.
Now, the `make:auth` command asks if the user wants an empty authenticator or a form login.
If "form login" is chosen, the user is asked for the security controller name, and for the user class, if needed.
If the controller already exists, the command adds the login / logout methods in the existing controller.
Commits
-------
5257b67 form login : PR review : batch 5
cd86b3b form login : PR review : batch 4
78abbf4 form login : fix after review - batch 3
bc0089d form login : use dynamic username field
388df31 form login : guess if encoder is needed
c44f878 fix after review - batch 1
9ec9766 Test logging process with users as entity
fd76519 unit tests
7fd5a35 Add tests into fixtures files
02ff624 Functional tests
f96c51e Add logout method to already existing SecurityController
0bfd028 Handle when securityController provided already exist
011b1d6 Merge MakeLoginForm into MakeAuthenticator
efb19e4 create MakeFormLogin commandFile tree
47 files changed
+2147
-66
lines changed- src
- Doctrine
- Maker
- Resources
- config
- help
- skeleton/authenticator
- Security
- Util
- tests
- Maker
- Security
- fixtures
- expected
- source
- Util
- fixtures
- add_method
- source
- fixtures
- MakeAuthenticatorLoginFormCustomUsernameField
- config/packages
- src/Security
- tests
- MakeAuthenticatorLoginFormExistingController
- config/packages
- src
- Controller
- Entity
- tests
- MakeAuthenticatorLoginFormUserEntityNoEncoder
- config/packages
- src/Entity
- tests
- MakeAuthenticatorLoginFormUserEntity
- config/packages
- src/Entity
- tests
- MakeAuthenticatorLoginFormUserNotEntityNoEncoder
- config/packages
- src/Security
- tests
- MakeAuthenticatorLoginFormUserNotEntity
- config/packages
- src/Security
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+2147
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
180 | 189 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
| |||
178 | 195 | | |
179 | 196 | | |
180 | 197 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
190 | 202 | | |
191 | 203 | | |
192 | 204 | | |
| |||
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
199 | 223 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
36 | 51 | | |
0 commit comments