Skip to content
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

Cannot login when userfield is id #119

Open
stevepiercy opened this issue Apr 19, 2016 · 0 comments
Open

Cannot login when userfield is id #119

stevepiercy opened this issue Apr 19, 2016 · 0 comments
Milestone

Comments

@stevepiercy
Copy link
Member

Use this sample code. For some reason, authentication fails whenever the userfield is set to id, but it will work when the userfield is any other column.

$db -> settable('user')
$s_user -> userfield = 'id'
$s_user -> login(-username=$s_id, -password=($f -> getvalue('password')))
$s_auth_id = integer($s_user -> id_user)

$out -> append($db -> action_statement)
$out -> append('<br>')
$out -> append($db -> found_count)
$out -> append('<br>')
$out -> append($s_user -> auth)
$out -> append('<br>')
$out -> append($s_user -> id_user)
@stevepiercy stevepiercy added this to the 0.2 milestone Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant