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

Small error in Gdn_Auth leading to annoying bugs when trying to make auth plugins work... #1715

Closed
zedrdave opened this issue Oct 8, 2013 · 1 comment

Comments

@zedrdave
Copy link

zedrdave commented Oct 8, 2013

Gdn_Auth::AssociateUser() does weird things with its $Success variable:

when doing an insert, it just ignores the value returned.

when doing a replace, it uses the value returned by Replace(). Except as best as I can see, the Replace() function doesn't have a return value, meaning it always gets set to false...

In effect, $Success always returns true when $UserID > 0, and false otherwise... Which is most likely not the expected behaviour (took me a few hours figuring out why my auth plugin was failing).

@linc linc added the Bug label Feb 14, 2015
@linc linc removed the Bug label Sep 26, 2015
@linc
Copy link
Contributor

linc commented Sep 26, 2015

We'd accept a pull request to correct this, but have no other plans to address it.

@linc linc closed this as completed Sep 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants