-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Error while logging in with "Remember me" using Postgres #635
Comments
Does Postgres not support SHA1? Is it possible that there is some extension that you need to install? |
There is no such function in PostgreSQL, unfortunately. The only way I've found is |
Hmm. Looking at the source code, it has raw SQL queries. Wouldn't surprise me if this had issues on other dbms too. |
Yep, the code of this library doesn't seem to be DB agnostic. |
If we can find a pre-existing implementation of improved persistent login for Eloquent, I'd be fine if someone wants to work on replacing the gbirke library. Otherwise, we may have to implement our own version. |
I think the easiest way to fix this will be own implementation of PDO storage class for gbirke/rememberme library:
|
Did you see this commit: gbirke/rememberme#20 (comment) ? My recommendation would be to fork @gbirke's repo, make the changes, and then submit a PR. He seems pretty willing to merge PRs as long as they adhere to standards and pass unit tests. It would be simpler than for us to try and maintain a separate fork. |
I didn't see this commit itself yet, but I saw this solution with custom |
Maybe leave a comment on that commit? Ask them why they didn't just use PHP's |
There is an issue already (from me): gbirke/rememberme#19 |
The history why I do the hashing in SQL instead of PHP is a bit hazy (that was 2-3 years ago), I dimly remember having problems writing a unit test and then settling on doing it in SQL because it was the easiest. At the moment I have no spare time to change it, but if anyone supplies a patch, I'll gladly merge it and release a new version of the library. |
Well, to test a patch with UF we need to bump the version of gbirke/rememberme used in UF to the latest one. |
Not necessarily. Assuming we are already using the latest version (and therefore there are no breaking changes), its possible to just replace the respective folder in I believe there is also a way of forcing composer to use grab a specific version, regardless of what other dependencies request. (fairly sure I've done this before, not that I remember how...) |
UF uses version 1.0.4. The latest is 2.0. And there are breaking changes (at least with storage classes naming). So the problem is if someone will make a patch for the current version of gbirke/rememberme and @gbirke will release a new version, it will not affect the UF. |
After installing the module and adding the
This was solved in gbirke/rememberme#20 PR mentioned earlier, but to use this fix we (again) need the latest version of gbirke/rememberme. |
We can talk about updating UF to use |
Yes, I can. Please invite me (romeromsk) to the channel related to this topic. |
Cool, want to talk about it in #general? |
@gbirke would you please add the |
I have created the 2.0.1 release which uses PHPs |
Great, tnx @gbirke. |
Cool, I might be able to do it tonight. Btw, you can actually make the change directly and commit to the same branch, and the PR should get updated. |
Ok, done. |
@alexweissman, would you please merge it today? |
Alright, done! See 9c9316b. |
Tested after deleting the custom |
With Postgres as database driver I'm having an issue when trying to log in with "Remember me" checked:
So, using this library (
gbirke/rememberme
) makes UserFrosting database dependent.Any chances to get a fix/workaround for this?
The text was updated successfully, but these errors were encountered: