# CSRF Token is invalid

**URL:** <https://forum.mautic.org/t/csrf-token-is-invalid/10223>\
**Category:** Product Support\
**Created:** [February 12, 2018, 12:09pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223 "2018-02-12T12:09:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)\
**Post date:** [February 12, 2018, 12:09pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/1 "2018-02-12T12:09:45Z")

</div>

Hello all. I need a little help. I setup Mautic a few days ago. Having trouble connecting to Amazon SES SMTP servers, so I switched to Elastic Email. Ever since I did that, I’m getting this message:

“The CSRF token is invalid. Please try to resubmit the form.”

I logged out of the account, logged back in, same message.

Anyone have any idea what this means and how to fix it?

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 13, 2018, 1:46am UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/2 "2018-02-13T01:46:30Z")

</div>

@ann , check you PHPmyadmin and get the user name chnage the password , and try

---

<div class="post-metadata">

**Author:** ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)\
**Post date:** [February 13, 2018, 1:44pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/3 "2018-02-13T13:44:07Z")

</div>

@bizcrony thanks so much for your help

I went to PHPmyadmin and edited the database that I put mautic in. I searched for users and changed the username and password.

I still can’t get in. I tried clicking on reset password, getting the same CSRF token error message.

Do I have to wait a certain amount of time for the changes to be in effect? Maybe wait an hour or so?

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 13, 2018, 1:49pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/4 "2018-02-13T13:49:17Z")

</div>

@ann how may i help you already did , but this is the way . Make sure delete cache also.

---

<div class="post-metadata">

**Author:** ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)\
**Post date:** [February 13, 2018, 1:52pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/5 "2018-02-13T13:52:16Z")

</div>

@bizcrony Ohhhhhhhh, I forgot to do that. Thank you!

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 13, 2018, 2:14pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/6 "2018-02-13T14:14:13Z")

</div>

do it and try 🙂 did you change email id also ?

---

<div class="post-metadata">

**Author:** ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)\
**Post date:** [February 14, 2018, 12:57am UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/7 "2018-02-14T00:57:23Z")

</div>

I changed the email, not the email ID. I think I give up! I’m going to delete it and reinstall from scratch.

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 14, 2018, 5:50am UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/8 "2018-02-14T05:50:45Z")

</div>

okey Try and update

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [February 14, 2018, 8:00am UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/9 "2018-02-14T08:00:19Z")

</div>

@Ann, changing the password in PhpMyAdmin won’t work, I guess. You will have to encrypt the password. Please take a look here: [https://www.mautic.org/topic/reset-admin-password-via-ssh/#post-103024](https://www.mautic.org/topic/reset-admin-password-via-ssh/#post-103024)

---

<div class="post-metadata">

**Author:** ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)\
**Post date:** [February 14, 2018, 6:02pm UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/10 "2018-02-14T18:02:52Z")

</div>

@PeterTL and @bizcrony

Thanks for all your help. I ended up deleting the whole installation and going over to **Amazon EC2** and installing it from there. Working fine now AND FASTER!!!

[https://aws.amazon.com/marketplace/pp/B015YU4RJA](https://aws.amazon.com/marketplace/pp/B015YU4RJA)  
EC2 charges for Micro instances are free for up to 750 hours a month if you qualify for the [AWS Free Tier](https://aws.amazon.com/free/).

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [February 15, 2018, 1:03am UTC](https://forum.mautic.org/t/csrf-token-is-invalid/10223/11 "2018-02-15T01:03:24Z")

</div>

@Ann great to know
