ollieread/multiauth

How to get Codecept working with multiauth?

Closed this issue · 2 comments

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());
}

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

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