Hi, with latest dev of 2011-10-06, I see the following unwanted feature:
- If the user has a matching IP-address, the user should be logged in automatically, but he is not. Instead, only the link 'log in automatically' is shown.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1303620-2_ip_login.patch | 4.47 KB | johnv |
| #1 | 1303620-1_ip_login.patch | 5.66 KB | johnv |
Comments
Comment #1
johnvAttached patch corrects this issue.
There is still some hassle with cookies etc. I hope peterx hurries with his in-session user change modification :-)
Also:
- removes superfluous variable LOGIN_BY_IP_COMPLETE
- renaming for better debugging:
-function _ip_login_can_use_alternate_account($user) {
+function _ip_login_can_login_as_another_user($user) {
Comment #2
johnvA better patch..
Comment #3
johnvComment #4
jim kirkpatrick commentedThis behaviour is dependent on cookies being set... Full testing of the existing setup is required to avoid breaking functionality... Will have a look soon, thanks Johnv.
Comment #5
jim kirkpatrick commentedThis is odd... This behaviour and that in #1310634: link 'log in automatically' is shown, even for user without proper IP-address is related and perhaps stems from the D7 port not quite matching D6 behaviour in certain places... Again, this and the above issue need careful testing because D6 is the 'master' for now so all changes must happen there first and pushed to D7 when tested.
Again, I'll do a full test of both very soon and see what the issue is. Thanks.
Comment #6
jim kirkpatrick commentedThanks John... This is exactly what the code needed: a clear process in hook_boot(). I've added with minor tweaks and back-ported it to the 6.x-2.x branch. Now D6 and D7 share identical
hook_boot()andip_login_logout()methods.Committed in D7 = 00c9240 and D6 = 065dd02, together with your work in #1310634: link 'log in automatically' is shown, even for user without proper IP-address and my work to add a new IP Login link-only block.
Thanks again.
Comment #7.0
(not verified) commentedreduced text to address only 1 issue.