# Login Portal not working, password reset not working "The CSRF token is invalid. Please try to resubmit the form"

**URL:** <https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027>\
**Category:** Product Support\
**Created:** [February 24, 2020, 12:44pm UTC](https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027 "2020-02-24T12:44:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrimRose](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/primrose/32/1783_2.png) [@PrimRose](https://forum.mautic.org/u/PrimRose)\
**Post date:** [February 24, 2020, 12:44pm UTC](https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027/1 "2020-02-24T12:44:26Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.1.32-1+0~20190902.23+debian9~1.gbp9d1be7

**Your problem**  
My problem is: I cannot log into Mautic, when I put in the correct username and password for 2 accounts it reloads as if nothing happened. When I go to reset the password 95% if the time it does not work and comes up with “The CSRF token is invalid. Please try to resubmit the form”

Same issue as here: [https://github.com/mautic/mautic/issues/5614](https://github.com/mautic/mautic/issues/5614)

These errors are showing in the log: No errors are showing in the log.

Steps I have tried to fix the problem: Regressed to backup, different browsers, clearing the caches. Nothing seems to work. I have managed to stay loggedin on my phone but when I restored the backup it logged me out and I cannot get back in.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [February 24, 2020, 2:46pm UTC](https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027/2 "2020-02-24T14:46:34Z")

</div>

Hi @PrimRose,  
were you ever able to log in / at what point did it stop working for you?  
Can you confirm that [https://github.com/mautic/mautic/pull/7883](https://github.com/mautic/mautic/pull/7883) (fix is part of 2.16.0) is not the same issue as yours?

---

<div class="post-metadata">

**Author:** ![PrimRose](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/primrose/32/1783_2.png) [@PrimRose](https://forum.mautic.org/u/PrimRose)\
**Post date:** [February 25, 2020, 9:04am UTC](https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027/3 "2020-02-25T09:04:09Z")

</div>

Hi,

I have updated the system to 2.16.0 and it may be caused by how I set up the http to https. I’m having trouble replicating the fault now.

So it could have been fixed by the upgrade.

Prim

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [February 25, 2020, 8:18pm UTC](https://forum.mautic.org/t/login-portal-not-working-password-reset-not-working-the-csrf-token-is-invalid-please-try-to-resubmit-the-form/13027/4 "2020-02-25T20:18:17Z")

</div>

nice, thanks for the update and good news 🙂
