-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public registration & oAuth2 \o/ #1436
Conversation
nicosomb
commented
Sep 29, 2015
- public registration
- remove WSSE implementation
- add oAuth2 implementation
69b054c
to
024a536
Compare
Sorry, I created a big PR. |
Todo:
|
Wow, good job. |
I need to talk with you about passwords. |
return; | ||
} | ||
|
||
$config = new Config($event->getUser()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you put a comment on that class to explain that it is called after a user is registered?
Or maybe renamed it to RegistratioConfirmedListener
to be more explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
I added tests for public registration. Do you think it's enough for this feature? And for this PR? For example, I didn't write tests for email validation. |
You can add unit test for Well, validation email are already tested in FosUser I guess. |
Added a test on |
Thanks for the functional test but I was talking about a unit test (which doesn't load all Symfony) but only the |
oops, sorry for the container :-( |
and thank you for the test 👍 ! |
Next step: remove what we've done about forgot password, login, etc .. to use FOS |
Planned. And also create a UserBundle. |
Ooooh I don't know what I did :( all these commits ... |
* remove WSSE implementation * add oAuth2 implementation
* add tests
And PLEASE @nicosomb, NEVER EVER inject the whole container inside a service.
I think I've fixed the mess :) I've cherry-picked your 2 commits and fixed few things.
|
thank you for your help! |
There are still some work to be done :)
|
What is it? I will work on the other tasks soon. |
Woops, I said graby but I wanted to say baggy 😄 |
Why is the name field a textarea ? Be sure to make it optional. |
It's already deleted in next commits ;-) |
I removed I have to work on baggy form, but material is now OK :-) |
I tried to remove |
RegistrationType was removed in my last commit and test suite seems to be green. |
Ready for last review. |
Should be ok for now, we'll see later if we need improvment. |