Hello, I've problem with logging into my application, i've tried to use another hashing, but it didn't helped.
It not returning any error, just can't login user.
Route for logging in:
Route::post('/login', function() {
if(Auth::attempt(array('a13login' => Input::get("email"), 'password' => Input::get("password")))) {
return Redirect::intended('/');
} else {
return View::make('auth.login')->with("login_form_name", Input::get("email"));
}
});
User.php:
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'a13user';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('a013password');
/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifier()
{
return $this->getKey();
}
/**
* Get the password for the user.
*
* @return string
*/
public function getAuthPassword()
{
return $this->a013password;
}
/**
* Get the token value for the "remember me" session.
*
* @return string
*/
public function getRememberToken()
{
return $this->a13remember_token;
}
/**
* Set the token value for the "remember me" session.
*
* @param string $value
* @return void
*/
public function setRememberToken($value)
{
$this->a13remember_token = $value;
}
/**
* Get the column name for the "remember me" token.
*
* @return string
*/
public function getRememberTokenName()
{
return 'a13remember_token';
}
/**
* Get the e-mail address where password reminders are sent.
*
* @return string
*/
public function getReminderEmail()
{
return $this->a13login;
}
}
I added also registering for users, that didn't passed. But it's still not working. Is there anyone who knows what can be proble?
Thanks!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community