2017 © Pedro Peláez
 

library laravel-password-updater

Handles password verification and re-hashing passwords that may be hashed by outdated methods.

image

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

The README.md

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.
}

The Versions

09/10 2016

dev-master

9999999-dev

Handles password verification and re-hashing passwords that may be hashed by outdated methods.

  Sources   Download

MIT

09/10 2016

0.0.2

0.0.2.0

Handles password verification and re-hashing passwords that may be hashed by outdated methods.

  Sources   Download

MIT

09/10 2016

0.0.1

0.0.1.0

Handles password verification and re-hashing passwords that may be hashed by outdated methods.

  Sources   Download

MIT