# Password constraints

**URL:** https://hub.mender.io/t/password-constraints/3453
**Category:** General Discussions
**Created:** [April 2, 2021, 7:23pm UTC](https://hub.mender.io/t/password-constraints/3453 "2021-04-02T19:23:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fabrice](https://hub.mender.io/u/Fabrice)
#### Post date: [April 2, 2021, 7:23pm UTC](https://hub.mender.io/t/password-constraints/3453/1 "2021-04-02T19:23:58Z")

</div>

Hi all,  
I created a VM into Azure by using terraform.  
I ran a custom script to install a Mender hosted server following the documentation.  
I programmatically created a new user with a 8 alphanumeric password without any error.

Anyway when trying to login, the following error is raised  
`There was a problem logging in. Please check your email and password. If you still have problems, contact an administrator.... [Request ID: 70f752fd]`

I wonder if there is any rules about password (allowed characters, min/max size, …).

I would like also to know how resetting the password of the existing user.

Many thanks for your help,

Best regards,

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [April 2, 2021, 7:52pm UTC](https://hub.mender.io/t/password-constraints/3453/2 "2021-04-02T19:52:19Z")

</div>

@peter any ideas?

---

<div class="post-metadata">

### Author: ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)
#### Post date: [April 2, 2021, 7:55pm UTC](https://hub.mender.io/t/password-constraints/3453/3 "2021-04-02T19:55:19Z")

</div>

@Fabrice can you please explain how you created the user? You mention you’ve done it “programmatically”, which API end-point did you use? Can you try to create the user entering the useradm container and using the CLI?

---

<div class="post-metadata">

### Author: ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)
#### Post date: [April 2, 2021, 8:35pm UTC](https://hub.mender.io/t/password-constraints/3453/4 "2021-04-02T20:35:43Z")

</div>

hello @Fabrice

thank you for trying Mender.  
I would just try to reset the password with:

```auto
docker exec -it `docker ps | grep useradm | tail -1 | awk '{print($1);}'` useradm set-password --username your-useranme --password new-password

```

best regards,  
peter

---

<div class="post-metadata">

### Author: ![Fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fabrice](https://hub.mender.io/u/Fabrice)
#### Post date: [April 3, 2021, 5:28am UTC](https://hub.mender.io/t/password-constraints/3453/5 "2021-04-03T05:28:52Z")

</div>

Thank you all for your feedback !

In my Terraform script, I ran `./run exec mender-useradm /usr/bin/useradm create-user --username=<email> --password=<8 alphanumeric character password>`

I will try Peter’s answer and get back to you.

Have a nice WE,

Fabrice

---

<div class="post-metadata">

### Author: ![Fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@Fabrice](https://hub.mender.io/u/Fabrice)
#### Post date: [April 3, 2021, 2:08pm UTC](https://hub.mender.io/t/password-constraints/3453/6 "2021-04-03T14:08:52Z")

</div>

Hi all,

Thanks a lot to Peter who has solved my problem.

I added 2 non alphanumeric characters to have 10 character long password.

Have a really nice WE,

Fabrice

---

<div class="post-metadata">

### Author: ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)
#### Post date: [April 6, 2021, 6:03am UTC](https://hub.mender.io/t/password-constraints/3453/7 "2021-04-06T06:03:02Z")

</div>

feel free to reach anytime! have a good day!

peter
