OCUserBundle creation
UlrichHP opened this issue · 1 comments
UlrichHP commented
Creation of an authentication system.
- Install and Use of FOSUserBundle.
- This bundle will allow visitors to login and/or register.
- Possibility to edit your profile.
- Before this bundle, you were able to add, edit and delete Tricks freely. Now, you need to be connected to do so.
Time Estimate : 2 days.
UlrichHP commented
For this issue, here is the list of changes:
- Created OCUserBundle with the command line.
- Deleted defaultController.php and other files not needed for this website / bundle.
- Created User Entity and Repository.
- Used FOSUserBundle. Installed it with composer.
- Chose Gravatar for the profile pictures (will be used for the comments).
- Modified the User Entity to use FOSUserBundle and Gravatar.
- Modified OCUserBundle.php to use FOSUserBundle.
- Added the Bundle in composer.json autoload PSR-4.
- Updated the Database to add the new table: fos_user.
- Copied the default views of FOSUserBundle in app/Resources/FOSUserBundle/views to override them and modified them to match the layout of the website.
Now you can register, login, edit your profile and change your password. If you want to add, modify or delete tricks, you have to be logged in. Buttons are only visible when logged in.
Done in : 2 days.