# Certains utilisateurs ne peuvent pas se connecter au site de test

**URL:** https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418
**Category:** Support
**Created:** [Juin 3, 2019, 9:19 UTC](https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418 "2019-06-03T21:19:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [Juin 3, 2019, 9:19 UTC](https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418/1 "2019-06-03T21:19:09Z")

</div>

We have a stable production site at [forum.example.com](http://forum.example.com). I created a test site at [test.example.com](http://test.example.com). I can log in, using my production site credentials, but others cannot. How can I debug this?

My process for creating the test site was:

- Create server from AMI (I’m on AWS)
- Backup from production, restore to test site
- SiteSetting.enable\_sso = false
- SiteSetting.enable\_local\_logins = true
- Rebuild
- Disable outgoing email

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [Juin 3, 2019, 9:21 UTC](https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418/2 "2019-06-03T21:21:24Z")

</div>

Do those users have local login passwords? It’s entirely possible they don’t have anything set up locally if SSO is used on the main site and was used to create these accounts. They may need reset from the CLI as you have email disabled so they can’t reset the normal way.

---

<div class="post-metadata">

### Author: ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)
#### Post date: [Juin 3, 2019, 9:30 UTC](https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418/3 "2019-06-03T21:30:54Z")

</div>

Sounds promising. Like this?

```
cd /var/discourse
./launcher enter app
rails c
u = User.find_by_email('email@test.com')
u.password='zKRR6vTZKvJAB84V9jdgeydS'
u.save!

```

ctrl+d to exit

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Juillet 3, 2019, 9:31 UTC](https://meta.discourse.org/t/some-users-cant-log-onto-test-site/119418/4 "2019-07-03T21:31:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
