Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Password Reset Core Bundle Laravel Package

dcs/password-reset-core-bundle

View on GitHub
Deep Wiki
Context7

Build Status Coverage Status

DCSPasswordResetCoreBundle

This bundle provides the tools and the general logic to manage the reset password integrating the bundle DCSUserCoreBundle.

It provides the abstraction of operations such as saving and searching for a single reset request through specific events.

Note: This bundle does not provide the final implementation of the operations but you must add and configure libraries (or create your own) to ensure the execution of commands.

Installation

Prerequisites

This version of the bundle requires Symfony 2.8+.

You must also install and configure the bundle DCSUserCoreBundle.

Require the bundle

Run the following command:

$ composer require dcs/password-reset-core-bundle "~1.0@dev"

Composer will install the bundle to your project's vendor/dcs/password-reset-core-bundle directory.

Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
	$bundles = array(
		// ...
		new DCS\PasswordReset\CoreBundle\DCSPasswordResetCoreBundle(),
		// ...
	);
}

Create your ResetRequest class

Until now he has never talked about persistence. This because? Why DCSPasswordResetCoreBundle not know the logic of how they will be implemented the Save methods. It is allowed total freedom of implementation.

Configure

Now that you have properly enabled this bundle, the next step is to configure it to work with the specific needs of your application.

Add the following configuration to your config.yml.

dcs_password_reset_core:
    model_class: Your\ResetRequest\Class
    repository_service: your_repository_service

Complete configuration

The complete configuration includes other parameters that you can change:

dcs_password_reset_core:
    # mandatory parameters
    model_class: Your\ResetRequest\Class
    repository_service: your_repository_service
    
    # optional parameters
    waiting_time_new_request: 86400  # waiting time before a new request
    token_ttl: 86400                 # life time of the token
    services:
        token_generator: dcs_password_reset.service.token_generator.random            # service to generate the token
        date_time_generator: dcs_password_reset.service.date_time_generator.generic   # service to generate the date

Events

The complete list of events is within the class DCS\PasswordReset\CoreBundle\DCSPasswordResetCoreEvents.

The DCSPasswordReset bundles

They were made available two bundles to install:

DCSPasswordResetPersistenceORMBundle This bundle provides the final implementation of the persistence through DoctrineORM.

DCSPasswordResetExplainViewBundle This bundle provides the settings to display the password recovery services through view and form.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
amashukov/lnd-client-php
althinect/enum-permission
andydefer/laravel-actions
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor