<p>Check your <a href="https://craftcms.com/docs/3.x/config/config-settings.html#cptrigger" rel="nofollow noreferrer">&quot;cpTrigger&quot;</a> in the <code>craftcmsfolder/config/general.php</code></p>

CC BY-SA 4.0
2022-09-18T16:33:02.340Z
That's set correctly, the problem is I can login with the admin username on local but prod is showing incorrect username or password. I can verify the DB is correct in both.
danklingjr
CC BY-SA 4.0
2022-09-18T19:05:57.053Z
If you are 100% sure that the users are the same (username and password hash in the tables locally and on the prod are the same), then, as I understand it, this is hosting, and, perhaps, just some PHP functions are turned off?
Maybe the versions of PHP, extensions, functions differ locally and on the production?
Can you basically log in to production as any user?
RomanAvr
CC BY-SA 4.0
2022-09-18T19:08:17.680Z
If you can’t login at all, then check if there are `hash_equals` and `password_verify` functions
RomanAvr
CC BY-SA 4.0
2022-09-18T16:17:40.320Z
2022-09-18T16:17:40.320Z
RomanAvr
<p>My admin username is not working on production. It works locally. I can change the password and add a new admin user, which works fine locally. Has anyone run into this before? Prod is on a Mediatemple server using php 7.4.21 and the Craft version is 3.5.5</p>

CC BY-SA 4.0
2022-09-18T22:55:22.393Z
Can you log into the admin on production using a different browser (or incognito window) than the you use for local dev?
stevecomrie
<admin><login>
Admin login not working on production
# Admin login not working on production

(Asked by: username_0 on 2022-09-18)

My admin username is not working on production. It works locally. I can change the password and add a new admin user, which works fine locally. Has anyone run into this before? Prod is on a Mediatemple server using php 7.4.21 and the Craft version is 3.5.5

**Tags:** admin, login
> **Comments:**
> **username_1**: Can you log into the admin on production using a different browser (or incognito window) than the you use for local dev?  

---

## 1 answers

### Answer by username_2 on 2022-09-18. Score: 1

Check your ["cpTrigger"](https://craftcms.com/docs/3.x/config/config-settings.html#cptrigger) in the `craftcmsfolder/config/general.php`

> **Comments:**
> **username_0**: That's set correctly, the problem is I can login with the admin username on local but prod is showing incorrect username or password. I can verify the DB is correct in both.  
> **username_2**: If you are 100% sure that the users are the same (username and password hash in the tables locally and on the prod are the same), then, as I understand it, this is hosting, and, perhaps, just some PHP functions are turned off? Maybe the versions of PHP, extensions, functions differ locally and on the production? Can you basically log in to production as any user?  
> **username_2**: If you can’t login at all, then check if there are `hash_equals` and `password_verify` functions  

---

