• Closed by: Marek
  • Closed on: 05.06.18, 11:44
  • Reason: Closed
  • Comment: Glad to help!

Ticket #12263 - Password requirments

When a user is registering an account and wrights the password it appears a warning saying to “match the requested format”. But it doesn’t say anywhere the requested format. Is this correctable?
Is it possible to change the password requirements?

Thanks.

Comments

Marek 23 May 2018, 09:29

there is a limitation for short passwords. the password must have at least 5 symbols. You can remove that in the file /themes/alysum/templates/_partials/form-fields.tpl
Just remove the line

pattern=".{literal}{{/literal}5,{literal}}{/literal}"
Goncalo Ribeiro 23 May 2018, 19:07

I don’t want to remove the limitation. I just want that the requirements of the password apear. If a message appears saying that the password must meet the requirements, it should be presented also what the requirements are.

Marek 02 Jun 2018, 22:49

Hi, Goncalo.
Sorry for the delay.
I’m not able to connect to your server through FTP now

Goncalo Ribeiro 03 Jun 2018, 13:36

Please, try now.

Marek 04 Jun 2018, 15:40

I just added a line

title="{l s='Minimum password length is 5 symbols' d='Shop.Theme.Actions'}"

to the file

/themes/alysum/templates/_partials/form-fields.tpl
Goncalo Ribeiro 04 Jun 2018, 16:05

That is perfect solution. But that brings the problem of the translations.

Marek 04 Jun 2018, 16:45

Can’t you translate the phrase?

Goncalo Ribeiro 04 Jun 2018, 18:01

Yes I can. But where do I put the translations?
Isn’t the phrase inserted directly in the code?

Marek 04 Jun 2018, 18:04

In your back office - Shop → Theme → Actions

Goncalo Ribeiro 05 Jun 2018, 02:20

Perfect. Thanks.