Horje
laravel auth sha-1 Code Example
laravel auth sha-1
There is actually a easier (or more simple, at least) solution for a case like this. you can 'fake' the hashing, by using this method in the user model:

public function getAuthPassword() {
    return Hash::make($this->password);
}
And hashing the input with your own hash function. For instance, if your passwords are currently hashed with sha1, you can validate the user with

Auth::attempt(array('email' => $email, 'password' => sha1($password))
It doesn't feel like good coding practice, to do it this way, but it will certainly be easier than rewriting the hash module.




Php

Related
php pdo postegresql connection Code Example php pdo postegresql connection Code Example
route login not defined how to laravel problems fixed Code Example route login not defined how to laravel problems fixed Code Example
php calculate average interavl between  multiple dates Code Example php calculate average interavl between multiple dates Code Example
Remove auto generate p from category description Code Example Remove auto generate p from category description Code Example
laravel where null Code Example laravel where null Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7