-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Columns first and second params feels it is username / password #15
Comments
It's not an assumption; the use passes the column names, so he says exactly what they are. |
@pmjones not sure what you mean. |
I mean, we're not assuming anything. The developer using the package specifies the columns he wants to select; we say the first one has to be the username column, and the second one has to be the password column. Am I missing your point maybe? |
ok. So the order was something like $cols = array(
'username',
'email',
'id',
'password',
'fullname',
'website',
'twitter'
); and I figured out that the $cols = array(
'username' => 'username',
'email',
'id',
'password' => 'password',
'fullname',
'website',
'twitter'
); the order doesn't matters. And we can throw really the exception that username is not present / password not present. Else if you look at the first array both the cols[0] and cols[1] are present and we don't get an exception and only saying password incorrect exception. Which I feel is wrong. Docs may fix / mention first column is username and second column is password. But seems good to be associative in my opinion. Thank you. |
This does seem like a doc fix, not a technical issue. Regarding associative, I was thinkging we want to leave the option for |
The
cols
assumes the array first and second value is username / password. That is a wrong assumption . May be we pass an associative array and don't use
$cols[0]
and$cols[1]
inAura.Auth/src/Adapter/PdoAdapter.php
Lines 96 to 105 in 421bc6e
The text was updated successfully, but these errors were encountered: