Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-18T16:33:02.340Z
Answers.Text: 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.
Answers.UserDisplayName: danklingjr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-18T19:05:57.053Z
Answers.Text: 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?
Answers.UserDisplayName: RomanAvr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-18T19:08:17.680Z
Answers.Text: If you can’t login at all, then check if there are `hash_equals` and `password_verify` functions
Answers.UserDisplayName: RomanAvr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-18T16:17:40.320Z
Answers.LastActivityDate: 2022-09-18T16:17:40.320Z
Answers.UserDisplayName: RomanAvr
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-09-18T22:55:22.393Z
Comments.Text: Can you log into the admin on production using a different browser (or incognito window) than the you use for local dev?
Comments.UserDisplayName: stevecomrie
Tags: <admin><login>
Title: Admin login not working on production
ThreadText: # 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  
  
  ---
  
  