Download the PHP package drewlabs/passwords without Composer
On this page you can find all versions of the php package drewlabs/passwords. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drewlabs/passwords
More information about drewlabs/passwords
Files in drewlabs/passwords
Package passwords
Short Description Password resets implementation for drewlabs auth library
License MIT
Informations about the package passwords
Password Resets
Password reset is a workflow that allow application users to modify their connection credential a.k.a password while not being connected to the application.
drewlabs/passwords
is a framework agnostic password reset workflow for PHP programming language, that support link
based and otp
based password reset.
Usage
The library ships with command classes for creating password reset link/otp a.k.a One Time Password
, and other commands to validated the generated token or otp.
- Request password reset
Note In the code above the CanResetPasswordProvider
is a fake user resolver implementation. Library users must provide their own user resolver that implement Drewlabs\Passwords\Contracts\CanResetPasswordProvider
contract.
- Generate password reset OTP
Documentation is under development, any API changes or feature will be added accordingly.
- Passsword reset token repository
The drewlabs/passwords
library ship a reset tokens repository implementation that is extensible by creating drivers that implements Drewlabs\Passwords\Contracts\ConnectionInterface
contract.
All versions of passwords with dependencies
drewlabs/password-contracts Version ^0.2.0
tuupola/base62 Version ^2.1