Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Gaza07 on May 16, 2017, 04:15:14 PM

Title: Login problems after v2.0.14
Post by: Gaza07 on May 16, 2017, 04:15:14 PM
I applied the update to my v2.0.13 forum and since doing this members couldnt log back in and got a session timed out while posting error, I reset the forum to the default smf theme and it seemed to cure the login problem if they used the login across the top, I also have simple portal installed and the user info / login box gives the same time out error,
When I applied the patch the custom themes where ticked and most all said test successful, Only a couple of themes had a fail,
The problem is even the custom themes where all test where successful dont appear to work on login,
I have check with an editor and the themes do appear to have the new line in them as they should, I'm at a loss why the custom themes are not now working and the simple portal to 
Title: Re: Login problems after v2.0.14
Post by: vbgamer45 on May 16, 2017, 04:25:45 PM
Check out this post  it affects any login form that isn't updated so some portal mods might be affected too
https://www.simplemachines.org/community/index.php?topic=553902.0 and mods that use ssi_login
Title: Re: Login problems after v2.0.14
Post by: Gaza07 on May 16, 2017, 04:40:23 PM
I have done some more testing and the custom themes work fine as long as the upper smf login boxes are used the problem id with the simple portal box, any idea how to fix this ?
Title: Re: Login problems after v2.0.14
Post by: vbgamer45 on May 16, 2017, 04:47:47 PM
It's bug in Simpleportal you can ask them to update it http://simpleportal.net/ or in the mod topic.
Title: Re: Login problems after v2.0.14
Post by: Gaza07 on May 16, 2017, 04:53:54 PM
Thanks I will pop on there and enquire do the other portals have the same problem ? I'm asking in case I have to change to another
Title: Re: Login problems after v2.0.14
Post by: Gluz on May 16, 2017, 04:55:49 PM
SimplePortal uses the SSI function, that is not updated in the patch, need the same edit as custom themes' login.
Title: Re: Login problems after v2.0.14
Post by: lurkalot on May 16, 2017, 05:02:44 PM
Thanks I will pop on there and enquire do the other portals have the same problem ? I'm asking in case I have to change to another

Tinyportal has a problem with the login, but only if you use the login on the User Block, this will get fixed asap.

Seems anything that uses /index.php?action=login2 will throw this error.
Title: Re: Login problems after v2.0.14
Post by: vbgamer45 on May 16, 2017, 05:11:13 PM
Yes that is true. I had it updated with ezportal a while back since I looked at it SMF 2.1 and had that same code that 2.1 version
Title: Re: Login problems after v2.0.14
Post by: lurkalot on May 16, 2017, 05:55:21 PM
Yes that is true. I had it updated with ezportal a while back since I looked at it SMF 2.1 and had that same code that 2.1 version

Think we've fixed Tinyportal too, just got to test it.   You saying that reminds me we probably need to apply it to TP2 as well. ;)
Title: Re: Login problems after v2.0.14
Post by: Illori on May 16, 2017, 05:57:52 PM
Think we've fixed Tinyportal too, just got to test it.   You saying that reminds me we probably need to apply it to TP2 as well. ;)

no we dont, that should have been taken care of a long time ago.
Title: Re: Login problems after v2.0.14
Post by: Gaza07 on May 16, 2017, 05:58:24 PM
I think I have fixed the problem I edited the  /Sources/PortalBlocks.php

FIND:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
REPLACE WITH:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Hope this helps some one else



Title: Re: Login problems after v2.0.14
Post by: lurkalot on May 17, 2017, 03:24:45 AM
Think we've fixed Tinyportal too, just got to test it.   You saying that reminds me we probably need to apply it to TP2 as well. ;)

no we dont, that should have been taken care of a long time ago.

Thanks, that's good to know.  I don't think I ever tested the login from that block, hence why I wasn't sure.  ;)
Title: Re: Login problems after v2.0.14
Post by: sunilimon on May 26, 2017, 05:15:23 AM
I think I have fixed the problem I edited the  /Sources/PortalBlocks.php

FIND:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" />
REPLACE WITH:
Code: [Select]
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Hope this helps some one else

Thank you so much! that worked for my system perfectly :)
Title: Re: Login problems after v2.0.14
Post by: Steve on May 26, 2017, 03:51:29 PM
Marking solved then. If you have any other questions regarding this topic, by all means, mark this unsolved and let us know. :)