library laravel-password-updater
Handles password verification and re-hashing passwords that may be hashed by outdated methods.
tmd/laravel-password-updater
Handles password verification and re-hashing passwords that may be hashed by outdated methods.
- Sunday, October 9, 2016
- by antriver
- Repository
- 1 Watchers
- 0 Stars
- 17 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
laravel-password-updater
Handles password verification and re-hashing passwords that may be hashed by outdated methods., (*1)
Setup
composer require tmd/laravel-password-updater
Usage
(Overly simplified example.), (*2)
<?php
use Tmd\LaravelPasswordUpdater\PasswordHasher;
public function login(PasswordHasher $passwordHasher)
{
/** @var User $user */
$user = User::where('username', $credentials['username'])->first();
if (!$user) {
return ['username' => ['There is no account with that username.']];
}
if (!$passwordHasher->verify($credentials['password'], $user, 'password')) {
return ['password' => ['That password is not correct.']];
}
// Password is correct.
}
dev-master
9999999-dev
Handles password verification and re-hashing passwords that may be hashed by outdated methods.
Sources
Download
MIT
0.0.2
0.0.2.0
Handles password verification and re-hashing passwords that may be hashed by outdated methods.
Sources
Download
MIT
0.0.1
0.0.1.0
Handles password verification and re-hashing passwords that may be hashed by outdated methods.
Sources
Download
MIT