0

I have my own user table and the password use other encryption methods. Now I want to use laravel 4 and my existing user table to do some other applications.How can I authentication in laravel 4.In other words, how can I use other authentication method in laravel4 instead of hash.

0

1 Answer 1

3

This an example of authentication using md5():

$user = User::where('email', Input::get('email'))->first();

if( $user && $user->password == md5(Input::get('password')) )
{
    Auth::login($user);

    return Redirect::intended('dashboard');
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.