Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

Latest commit

 

History

History
559 lines (354 loc) · 17.8 KB

File metadata and controls

559 lines (354 loc) · 17.8 KB

Changelog

v4.0.1

  • Updated version for c975l/email-bundle (11/10/2021)

v4.0

  • Changed localizeddate to format_datetime (11/10/2021)

Upgrading from v3.x? Check UPGRADE.md

v3.6

  • Replaced misd/phone-number-bundle by odolbeau/phone-number-bundle (08/10/2021)

v3.5.1

  • Changed Symfony\Component\Translation\TranslatorInterface to Symfony\Contracts\Translation\TranslatorInterface (03/09/2021)

v3.5

  • Removed versions constraints in composer (03/09/2021)

## v3.4.2.1

  • Corrected missing "?" to allow null latest sign out datetime (24/05/2021)

## v3.4.2

  • Added default "en" for locale when sending email (24/05/2021)

## v3.4.1.2

  • Added missing minified version of business.js (05/03/2020)

## v3.4.1.1

  • Cosmetic changes due to Codacy review (2) (05/03/2020)

## v3.4.1

  • Cosmetic changes due to Codacy review (05/03/2020)

v3.4

  • Removed use of symplify/easy-coding-standard as abandonned (19/02/2020)

v3.3.1

  • Removed composer.lock from Git (19/02/2020)

v3.3

  • Moved manage title in dashboard to is_granted admin condition (04/12/2019)
  • Added 975L Dashboards in user's dashboard (04/12/2019)
  • Transformed buttons in user's management in a toolbar (04/12/2019)

v3.2.2

  • Resized images to decrease downloaded size (28/11/2019)

v3.2.1.3

  • Updated README.md (23/10/2019)

v3.2.1.2

  • Updated README.md (23/10/2019)

v3.2.1.1

  • Corrected type hint for phone/fax that should not return string (16/09/2019)

v3.2.1

  • Added type for modifyRoles (16/08/2019)

v3.2

  • Added options={"expose"=true} to user_signin Route to made it reacheable via javascript (12/08/2019)

v3.1.1

  • Removed unused use (05/08/2019)
  • Corrected dispatch of event (05/08/2019)

v3.1

  • Made use of Symfony\Contracts\EventDispatcher\Event (05/08/2019)
  • Made use of apply spaceless (05/08/2019)

v3.0.1.1

  • Updated README.md to use auto instread of bcrypt ofr encoder (05/08/2019)

v3.0.1

  • Updated README.md (17/07/2019)

v3.0

  • Made use of c975LEmailBundle v3 which use Symfony/Mailer (15/07/2019)
  • Made use of KnpPagnigatorBundle v4 (15/07/2019)
  • Dropped support of Symfony 3.x (15/07/2019)

Upgrading from v2.x? Check UPGRADE.md

v2.x

v2.5.4.3

  • Removed Bundle from AppBundle in the bundle.yaml (13/07/2019)

v2.5.4.2

  • Added use in README.md (08/07/2019)

v2.5.4.1

  • Changed Github's author reference url (08/04/2019)

v2.5.4

  • Made use of Twig namespace (11/03/2019)

v2.5.3

  • Removed {identifier} from user_api_reset_password_confirm as it can't be kept (07/03/2019)
  • Moved token to url instead of body for user_api_reset_password_confirm (07/03/2019)
  • Added condition to check if user has been found in ApiController (07/03/2019)

v2.5.2

  • Modified API reset-password to take the email and not the identifier (07/03/2019)

v2.5.1

  • Removed correction for user_api_add_role, user_api_delete_role and user_api_modify_roles as it has to be the user defined in JWT (07/03/2019)

v2.5

  • Added route for API change-password and reset-password (06/03/2019)
  • Removed POST methods for some API modifyRole method (06/03/2019)
  • Corrected user_api_add_role, user_api_delete_role and user_api_modify_roles that were taking the user defined in JWT instead of the one defined with identifier (06/03/2019)

v2.4.3

  • Added test to check if user is not already registered for API and Form (05/03/2019)
  • Corrected getAllowUse to return boolean (05/03/2019)

v2.4.2

  • Corrected API add role (05/03/2019)
  • Corrected API delete role (05/03/2019)

v2.4.1

  • Corrected index values for Entities (15/02/2019)
  • Move id property to UserLightTrait (15/02/2019)

v2.4

  • Removed deprecations for @Method (13/02/2019)
  • Implemented AstractController instead of Controller (13/02/2019)
  • Removed deprecated checkMX (13/02/2019)
  • Replaced AdvancedUserInterface by UserInterface as deprecated (13/02/2019)
  • Corrected phpdoc params (13/02/2019)
  • Made use of typehint for entities (13/02/2019)
  • Corrected things found with phpstan (13/02/2019)
  • Modified Dependencyinjection rootNode to be not empty (13/02/2019)
  • Added possibility to fix the expiration for the JWT by adding field in submitted json to authenticate (14/02/2019)

v2.3.5.1

  • Modified message when not authenticated (05/02/2019)

v2.3.5

  • Made use of use Symfony\Component\Security\Core\User\AdvancedUserInterface; (12/01/2019)
  • Added Route for api_user_export (12/01/2019)
  • Corrected ApiService->delete() (12/01/2019)

v2.3.4

  • Added Events for API (07/01/2019)
  • Modified ApiVoter (07/01/2019)
  • Added possibility to stop instructions if Event propagation is stopped (08/01/2019)

v2.3.3.1

  • Corrected API modify() to take parameters from Body's request (07/01/2019)

v2.3.3

  • Added Route to update Roles with an array that erase all the existing roles (07/01/2019)

v2.3.2

  • Added validation on user entity when creating via API as wrong emails were passing (28/12/2018)

v2.3.1

  • Suppressed strtolower for email has it causes problems when submitting not lowercased emails when submitting via API (27/12/2018)

v2.3

  • Added Route user_api_list (27/12/2018)
  • Added Route user_api_search (27/12/2018)
  • Added knplabs/knp-paginator-bundle to composer.json (27/12/2018)

v2.2.9.2

  • Updated README.md (26/12/2018)

v2.2.9.1

  • Updated README.md (26/12/2018)

v2.2.9

  • Modifed POST method to PUT for Routes user_api_modify, user_api_add_role and user_api_delete_role (26/12/2018)
  • Added documentation for API (26/12/2018)
  • Added parameter apiPassword to check that the call for creating user is valid (26/12/2018)

v2.2.8

  • Modified required versions in composer.json (25/12/2018)

v2.2.7

  • Added missing use (25/12/2018)

v2.2.6

  • Corrected UPGRADE.md for php bin/console config:create (03/12/2018)
  • Added rector to composer dev part (23/12/2018)
  • Modified required versions in composer (23/12/2018)

v2.2.5

  • Moved to alphabetical order the method validateToken() (06/11/2018)
  • Added filter on$user->toArray() to avoid displaying unNeeded data (26/11/2018)

v2.2.4

  • Added return of user when authenticating and not only token (01/11/2018)

v2.2.3

  • Added Authorization Bearer header as accepted for JSON login (31/10/2018)
  • Added API Documentation (31/10/2018)
  • Removed config value authToken as not needed anymore (31/10/2018)

v2.2.2.1

  • Removed condition after api authentication as not needed because done by the Voter (30/10/2018)
  • Corrected the retrieval of the POST data for API that were the GET ones (30/10/2018)

v2.2.2

  • Added NotFoundHttpException for Manage Routes (30/10/2018)

v2.2.1

  • Removed symfony/environment from composer.json (29/10/2018)

v2.2

  • Added config parameter authToken to enable/disable the use of header X-AUTH-TOKEN (28/10/2018)
  • Corrected and set up to assign roles to user (UI + API) (28/10/2018)
  • Removed constant ROLE_SUPER_ADMIN as not used (28/10/2018)
  • Denied access to UI Routes when apiOnly === true (28/10/2018)
  • Added Manage Routes to manage users (29/10/2018)
  • Made use of Traits for Entities (29/10/2018)
  • Replaced is_subclass_of($user, 'c975L\UserBundle\Entity\UserAbstract') by instanceof \Symfony\Component\Security\Core\User\AdvancedUserInterface as Entity classes don't extends anymore (29/10/2018)
  • Replaced links in dashboard by buttons (29/10/2018)
  • Corrected public Profile display (29/10/2018)

v2.1.2

  • Added voter for authentication (23/10/2018)
  • Added if user is well loaded on authentication (23/10/2018)

v2.1.1

  • Added condition to create user using API (22/10/2018)

v2.1

  • Added API (19/10/2018)
  • Added Entity UserLight for minimum requirements (19/10/2018)
  • Added methods for sf4 (20/10/2018)

v2.0.1

  • Corrected missing $session variable (18/10/2018)
  • Made all entities properties private (18/10/2018)

v2.0

  • Updated composer.json (01/09/2018)
  • Created branch 1.x (02/09/2018)
  • Made use of c975L/ConfigBundle (03/09/2018)
  • Made use of c975L/ServicesBundle (03/09/2018)
  • Added bundle.yaml (06/09/2018)
  • Removed declaration of parameters in Configuration class as they are end-user parameters and defined in c975L/ConfigBundle (06/09/2018)
  • Updated README.md (06/09/2018)
  • Updated UserVoter (06/09/2018)
  • Added link to BuyMeCoffee (06/09/2018)
  • Added link to apidoc (06/09/2018)
  • Added phpdoc to Entities (06/09/2018)
  • Added phpdoc to Event (06/09/2018)
  • Added phpdoc to UserRepository (06/09/2018)
  • Added phpdoc to OAuthUserProvider (06/09/2018)
  • Added phpdoc to Twig extensions (06/09/2018)
  • Added phpdoc to Validator (06/09/2018)
  • Renamed "tva" to "vat" except sql field name (06/09/2018)
  • Added phpdoc to Listener (06/09/2018)
  • Added phpdoc to Form (06/09/2018)
  • Added UserFormFactory (04/10/2018)
  • Removed Submit buttons from FormTypes (04/10/2018)
  • Added config route (04/10/2018)
  • Moved signin and signout to UserController (18/10/2018)

Upgrading from v1.x? Check UPGRADE.md

v1.x

v1.12.1

  • Removed 'true ===' as not needed (25/08/2018)
  • Corrected nodetype for signup config value (28/08/2018)
  • Fixed Voter constants (31/08/2018)

v1.12

  • Removed Action in controller methods (03/08/2018)
  • Split controller files (03/08/2018)
  • Made use of Voters (03/08/2018)
  • Use of Yoda-style (03/08/2018)
  • Added event USER_MODIFY (03/08/2018)
  • Added eamil sent when password has been chenged (or resetted) (03/08/2018)
  • Added checkbox on signup to accept Terms of use (03/08/2018)

v1.11

  • Added Route to export user's data (JSON/XML) to answer to GDPR (27/06/2018)
  • Added DB field allow_use + Checkbox to allow website to store and use data provided by user, to answer GDPR (use ALTER TABLE user ADD allow_use tinyint(1) DEFAULT 0 AFTER id; to add this field to your Table) (27/06/2018)

v1.10.4

Use of EntityManagerInterface (22/05/2018)

v1.10.3

  • Modified gender field to varchar(24) (15/05/2018)
  • Removed required in composer.json (22/05/2018)

v1.10.2

  • Modified toolbars calls due to modification of c975LToolbarBundle (13/05/2018)
  • Modified help (13/05/2018)

v1.10.1

  • Added information in README.md (03/05/2018)

v1.10

  • Added phone and fax fields for Address and Business (03/05/2018)
  • Added use of Misd\PhoneNumberBundle to check phone numbers (03/05/2018)
  • Added sql code for creation of archive table (03/05/2018)
  • Added key un_identifier (03/05/2018)

v1.9.1

  • Added info in README.md about publicProfile config value (02/05/2018)
  • Added possibilty to provide user to Twig user_avatar() function (02/05/2018)

v1.9

  • Replaced submit button by SubmitType in some Forms Types (16/04/2018)
  • Corrected UserChangePasswordType.php (16/04/2018)
  • Corrected validators.en.xlf (16/04/2018)
  • Corrected Route user_reset_password_confirm (16/04/2018)
  • Corrected Repository calls to call the defined Entity in config.yml (16/04/2018)
  • Moved to AdvancedUserInterface instead of UserInterface to display message for disabled accounts (16/04/2018)

v1.8.1

  • Added UserSiret Twig extension to display formatted Siret number (05/04/2018)
  • Added UserVat Twig extension to display formatted VAT number (05/04/2018)

v1.8

  • Added cancel link below submit button in dlete form, even if already present in toolbar, it's more stress-less for user (03/04/2018)
  • Added possibility to define number of signin attempts and disbale sign in button for a delay (04/04/2018)
  • Removed createNotFoundException() for Route user_reset_password to un-allow checking which emails are registered (04/04/2018)

v1.7.5

  • Corrected missing gravatar size in OAuthUserProvider (03/04/2018)
  • Added mention in README.md to add c975L\UserBundle\Security\OAuthUserProvider in services.yml (03/04/2018)
  • Replaced the warning in delete account by a madatory checkbox (03/04/2018)

v1.7.4

  • Suppressed autowire of Security as it can't find the class OAuthAwareUserProviderInterface when HWIOAuth is not used (03/04/2018)

v1.7.3

  • Made creation of table user_archives by default (02/04/2018)

v1.7.2

  • Added fill in for field identifier in MigrationFosUser.sql and made field as NOT NULL (02/04/2018)
  • Simplified MigrationFosUser.sql (02/04/2018)
  • Changed sql code to create user_archives, to simplfiy it (02/04/2018)

v1.7.1

  • Changed throw createNotFoundException to redirect to user_signin for some Controller methods, which is more ergonomic (02/04/2018)

v1.7

  • Moved mandatory field mention in signin form (29/03/2018)
  • Added _target_path_ form field in signin form (29/03/2018)
  • Added info about requesting signin form and custom redirect after (29/03/2018)
  • Changed registration config value to signup to be coherent with the naming in the bundle [BC-Break] (01/04/2018)
  • Made signup config value false as default (01/04/2018)
  • Updated README.md (01/04/2018)
  • Added Service methods to retrieve user (01/04/2018)
  • Modified UserController methods to throw createNotFoundException() or createAccessDeniedException() depending if the user has been found or not (01/04/2018)
  • Corrected UserAbstract for address fields (01/04/2018)
  • Corrected Service to use the Entity defined in config.yml (01/04/2018)
  • Added event USER_SIGNEDUP to allow interact with its id (01/04/2018)
  • Added authentication via social networks using HWIOAuthBundle ! :-) (01/04/2018)
  • Renamed config value gravatar to avatar [BC-Break] and made it false as default (02/04/2018)
  • Renamed Twig extension UserGravatar to UserAvatar (02/04/2018)
  • Modified behaviour of Twig Extension UserAVatar to return the avatar (social network or Gravatar) if enabled (02/04/2018)
  • Made default size of gravatar stored in database to 512 in place of 128 (02/04/2018)

v1.6.1

  • Set Resources/views/fragments/avatar.html.twig to allow override display of avatar (26/03/2018)

v1.6

  • Corrected locale field to varchar(2) in sql file (22/03/2018)
  • Removed switch for setLocale() in UserAbstract() (22/03/2018)
  • Updated README.md (22/03/2018)
  • Added signin option in Resources/views/fragments/navBarMenu.html.twig when user has not signed in (23/03/2018)
  • Simpified signup redirect Routes (23/03/2018)

v1.5.1

  • Added findUserByIdentifier() method to UserService (21/03/2018)
  • Remove NotFound from Controller user_signup_confirm() and replaced by redirect to signin (+ flash), in case user click more than once on the provided link (22/03/2018)

v1.5

  • Added Entity/UserAbstract.php to allow extending User entity (15/03/2018)
  • Changed Entity/User to only extend Entity/UserAbstract.php (15/03/2018)
  • Replace if $user instanceof User by is_subclass_of($user, 'c975L\UserBundle\Entity\UserAbstract') as they won't pass if the Entity is extended (15/03/2018)
  • Updated README.md about extending entities (15/03/2018)
  • Added Siret and Tva validators (16/03/2018)
  • Added possibility to extend UserProfileType and UserRegisterType (16/03/2018)
  • Added multiples entities classes + abstract to cover differents types of usage (17/03/2018)
  • Removed action property form User entity and passed it in the form options array (17/03/2018)
  • Removed lastname from signup as it's not required and can be set on the modify form (17/03/2018)
  • Added Twig extension UserDivData to populate user's informations to be used by javascript (18/03/2018)
  • Added UserService (18/03/2018)
  • Renamed folder Listeners to Listener (18/03/2018)
  • Added Events (18/03/2018)
  • Added findUserById service (18/03/2018)
  • Re-ordered README.md (18/03/2018)
  • Replaced findByXxx repository methods by findOneByXxx Doctrine's ones (19/03/2018)
  • Corrected layout.html.twig (19/03/2018)
  • Added switch to user preferred language in user_dashboard Route if multilingual support is enabled (21/03/2018)
  • Made the acceptance Signup as a checkbox [BC-Break] (21/03/2018)

v1.4

  • Added field "identifier" to be able to display public profile [BC-Break] (12/03/2018)
  • Added publicProfile (12/03/2018)

v1.3.5

  • Added 'label.dashboard' missing translations (09/03/2018)
  • Renamed register to signup (09/03/2018)
  • Added 'label.signup' missing translation for Sign up submit value (09/03/2018)
  • Suppressed cookies link in register acceptance (09/03/2018)
  • Added clean Challenge in session when connecting to avoid errors if someone goes to register, cnacel and the sign in (09/03/2018)

v1.3.4

  • Added "_locale requirement" part for multilingual prefix in routing.yml in README.md (04/03/2018)
  • Added rel="nofollow" for the Signin/Signout link (09/03/2018)

v1.3.3

  • Added template to display sign in/sign out link (03/03/2018)
  • Modified text from link to button in emails sent (03/03/2018)

v1.3.2.1

  • Removed the "|raw" for toolbar_button call as safe html is now sent (01/03/2018)

v1.3.2

  • Moved "Forget password" link below submit button on signin form (28/02/2018)

v1.3.1

  • Added c957L/IncludeLibrary to composer.json (27/02/2018)

v1.3

  • Added c957L/IncludeLibrary to include libraries in layout.html.twig (27/02/2018)

v1.2.2.1

  • Corrected @Index mention in User entity (27/02/2018)

v1.2.2

  • Added strotlower to email field (26/02/2018)
  • Added un_email index on table user (26/02/2018)

v1.2.1.1

  • Suppressed echo forgotten... (22/02/2018)

v1.2.1

  • Replaced links in register and resetPassword emails by a button (22/02/2018)

v1.2

  • Corrected sizes in User Entity to be coherent with what defined in user.sql (22/02/2018)
  • Suppressed email layout to use those defined in c975L\EmailBundle, to have only one place for user to override them (22/02/2018)
  • Abandoned Glyphicon and replaced by fontawesome (22/02/2018)
  • Added help pages (22/02/2018)
  • Added roleNeeded config value to enable access to other user's data (22/02/2018)

v1.1.1

  • Removed translations not used (21/02/2018)
  • Removed Twig fragments not used (21/02/2018)
  • Redirected already signed in user who tries to register (21/02/2018)

v1.1

  • Push first set of files (21/02/2018)

v1.0

  • Initial commit (19/02/2018)