Password don't accept certain special character

Bug #1970403 reported by marius DAVID
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
New
Undecided
Unassigned

Bug Description

Hello.

I had to use Mahara for some class work (on an instance hosted by the teacher). As I forgot my password (the usual one I used didn't), I reset it. I got the mail, clicked the link, but when trying to enter a new password, it didn't work.

The password I planned to use had the "€" symbol in it (as well as number, capital and lowercase letter), to fulfill the requierement, but I (still) had the error that it wasn't accepted. As that feel really strange, and something seems broken, I took a look at the code source : The set of symbol that are accepted are actually not every special character (and no message is displayed about it).

It seems it try to check the validity of the password, with the function "is_password_valid" in the file "htdocs/auth/internal/lib.php", but it first try to limit the special character to a small set of ASCII character with "if (!preg_match('/^[a-zA-Z0-9 ~!@#\$%\^&\*\(\)_\-=\+\,\.<>\/\?;:"\[\]\{\}\\\|`\']{' . $minlength . ',}$/', $password)) {", which doesn't include the € symbol (nor é, ç, nor emoji or a lot of stuff like that.

In addition, the error message I got (in french) didn't specified this (but it looks like the english version has the same kind of issues).

Additionally, I don't know which version is used, nor the server OS or the dabase (client is Android with Firefox 98.2.0).

On my side, I'll use one of those permitted special character. I just hope you fix this (either by permitting all special character, or making a better error message in those case. Or something else) for other.

I hope you will have a nice day -- Marius

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.