Page 1 of 1

FEUser error message passwort length

Posted: Wed Jan 24, 2018 4:56 pm
by map_1961
Hi there:
using latest cmsms version 2.2.5 and FEUser 2.8. module the error message apears when on registration typed in password is to short or to long:

"(Password must be %s to %s digits long)"

So the placeholders don't drag the settingsd digits given in the backend site admin -> FrontEndUser Settings - uiltin Authentication tab:
Length of password field: 6
Minimum Password Length: 20

Is it a bug or do i make any mistake?

Thx

MAP

Re: FEUser error message passwort length

Posted: Wed Jan 24, 2018 10:03 pm
by calguy1000
That text is not from SelfRegistration or FrontEndUsers:
I looked for that code in both of the latest released versions.
rob@rob-desktop /tmp/tmp $ tar zxf ~/Downloads/FrontEndUsers-2.8.tar.gz
rob@rob-desktop /tmp/tmp $ tar zxf ~/Downloads/SelfRegistration-1.12.tar.gz
rob@rob-desktop /tmp/tmp $ grep -ir digits *
rob@rob-desktop /tmp/tmp $

Re: FEUser error message passwort length

Posted: Thu Jan 25, 2018 8:08 am
by map_1961
Hi Calguy - thanks answering.
Its my translation from German to English.

It comes from this line in de_DE.php in SelfReg / lang / ext module directory:
...
$lang['error_invalidpassword'] = 'Das Passwort ist ungültig (Passwörter müssen %s bis %s Zeichen lang sein)';
...

See a screenshoit of the result in the webbrowser at this picture link:
http://download.mp-p.com/map/2018_01_2 ... ength.jpg
Much worser however is that after registration
a. the user has to click in a verification link in the verification email he get's.
b. If he does he has to type in the password into the browser message that opens (verification form)
c. If i type in the password i set on registration process - i did it for three hours yesterday and with 20 different passwords - i get this message whatever i try: "Sorry, the password you entered is incorrect."
d. So currently nowbody can register!

If you like to try you can use this registration form on the live site (sorry its german):
https://www.papageienpark-bochum.de/de ... egister_g

Its a latest cmsms running on php version 7.1 (7.2 is possible).


Thx for caring

MAP

P.s.: we met 2015 in Gent!

Re: FEUser error message passwort length

Posted: Thu Jan 25, 2018 9:47 am
by Rolf
The German translation probably isn't up-to-date
I checked the original strings, they are different...
Screen Shot 2018-01-25 at 10.43.55.png
You are very welcome to join the German translation team: http://dev.cmsmadesimple.org/projects/german

Grtz. Rolf

Re: FEUser error message passwort length

Posted: Thu Jan 25, 2018 5:11 pm
by map_1961
Yes Rolf.

The en_US.php works different and does not use the variables any more. So i translated the en_US text for error_invalidpassword and use this translation in de_DE.php.
Thx so far!

MAP

Re: FEUser error message passwort length

Posted: Fri Jan 26, 2018 8:01 am
by map_1961
Maybe anyone has an idea how to solve this, too:
map_1961 wrote: Much worser however is that after registration
a. the user has to click in a verification link in the verification email he get's.
b. If he does he has to type in the password into the browser message that opens (verification form)
c. If i type in the password i set on registration process - i did it for three hours yesterday and with 20 different passwords - i get this message whatever i try: "Sorry, the password you entered is incorrect."
d. So currently nowbody can register!

If you like to try you can use this registration form on the live site (sorry its german):
https://www.papageienpark-bochum.de/de ... egister_g

Its a latest cmsms running on php version 7.1 (7.2 is possible).

I insert the issue into bugtracker ...
http://dev.cmsmadesimple.org/bug/view/11709

Thx 4 hints how 2 solve.

MAP

Re: FEUser error message passwort length

Posted: Fri Jan 26, 2018 10:13 am
by rotezecke
it may not help in your case, but cannot harm to validate the html.
https://validator.w3.org/nu/?doc=https% ... ister_g%2F