ollieread / multiauth

Laravel multi auth
441 stars 109 forks source link

How to get Codecept working with multiauth? #72

Closed mvrsn closed 9 years ago

mvrsn commented 9 years ago

I haven't really figured out what is going on, but when I try to do a functional test and sign in with multiauth, for some reason, the method $user->getAuthPassword() in the code below returns an unhashed password when I sign in inside my Cept, but hashes properly when I sign in using a browser. Is this an issue, or is multiauth not being used at all by Codecept?

line 104 in \Illuminate\Auth\EloquentUserProvider

public function validateCredentials(UserInterface $user, array $credentials)
{
    $plain = $credentials['password'];

    return $this->hasher->check($plain, $user->getAuthPassword());
}
ollieread commented 9 years ago

I don't think that issue has anything to do with Multiauth, as the password is hashed by you.

mvrsn commented 9 years ago

Yea, my bad :) I forgot to hash the passwords on my new models, and also forgot that I had opened this non-issue. Sorry :)