B
B
Blud732014-01-15 17:58:44
Laravel
Blud73, 2014-01-15 17:58:44

Why can't user login in laravel?

When registering and creating the same passwords for different users, the hash is always different. This is fine?
And I can't authorize the user. I think therefore.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xAockd, 2014-01-16
@xAockd

Try doing this:
Because the User model implements the UserInterface interface, there are 2 methods

public function getAuthIdentifier(); // который возвращает по стандарту id(primary key)
public function getAuthPassword(); // который возвращает пароль ($this->password)

If the password is called "pass" then just change the getAuthPassword method to
AND different passwords, that's fine, laravel hashes. I hope that when you create a user, encrypt the password using
Hash::make($password);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question