Support the ongoing development of Laravel.io →
Authentication Input
Last updated 1 year ago.
0

Can you verify Input::all() contains an element called 'password'

Last updated 1 year ago.
0

elite123 said:

Can you verify Input::all() contains an element called 'password'

<input type='password' name='password' class='span8' id='inputIcon' placeholder='Password' /> it does Also, i tried removing Validator::make, and the problem seems to originate from Auth::attempt
Last updated 1 year ago.
0
Solution

Nevermind, i replaced attempt with login, and i made this:

		$auth = User::where('Name', '=', Input::get('username'))->where('Password', '=', Hash::make(Input::get('password')))->first();
		if($auth){
			Auth::login($auth);
			return Redirect::to('home');
		}
		else
		{
			return Redirect::to('login');
		}

and it works

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Joe96 joe96 Joined 28 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.