Page 1 of 1

FrontEndUsers Login stopped working

Posted: Sat Sep 01, 2018 6:28 pm
by wms
Hi,

I'm hoping someone can help me out please.

I'm running the latest version of CMSMS, all modules are upgrade, and running PHP 7.1.

I had a login page working for over a year on this site: http://www.kac1.ca/index.php?page=login

It has now stopped working. You type in the login credentials and nothing happens. This is what is in my template:
{FrontEndUsers}
{if feu_smarty::is_user_memberof('KAC')}
{$capturedcontent}
{/if}

The only thing that change in the last couple of days is that I upgraded all modules and upgraded CMSMS from 2.2.7 to 2.2.8. I was running PHP 5.5, I tried 5.6, and now 7.1.

Would anyone have any suggestion on why the login just stopped working?

This is a large community site and I need some help as soon as possible.

Thanks,

Jeff

Re: FrontEndUsers Login stopped working

Posted: Sat Sep 01, 2018 6:31 pm
by wms
And oh...if you want to try to log in, you can use: member@kac1.ca/Orange#123

Re: FrontEndUsers Login stopped working

Posted: Sat Sep 01, 2018 10:09 pm
by DIGI3
FEU 2.9 has some important information in the release notes:
Note: By default you MUST add {cge_form_csrf} to the inside of all forms in FEU form templates or an error will be generated on form submission.

You can disable this behaviour by using the cge_ignore_csrf config setting. See the CGEXtensions module for more info.

Re: FrontEndUsers Login stopped working

Posted: Sun Sep 02, 2018 12:08 am
by wms
Thank you very much for your reply.

I added {cge_form_csrf} to the top of all the FEU form templates and it still didn't work. Is there something else I need to do?

Re: FrontEndUsers Login stopped working

Posted: Sun Sep 02, 2018 12:09 am
by DIGI3
Not that I can recall, although it may have to be after the form_start tag. If that still doesn't work, clear the cache, and check your php error logs.

[SOLVED] FrontEndUsers Login stopped working

Posted: Sun Sep 02, 2018 12:33 am
by wms
Thank you very much for your quick help.

That did the trick.

Put {cge_form_csrf} at the end of all FEU Templates before the close "end of form" tag.

Thanks!!