ryancramerdesign/P21 — Issue #68: Passwords containing only foreign letters and numbers are not accepted.
Author: formmailer
Created: 2011-12-04 13:56:39+00:00
State: open

Issue came up in the following forum topic: http://processwire.com/talk/index.php/topic,598.msg6052.html#new and you already wrote down a possible solution, see below.
I thought it would be good to create an issue for it, otherwise it is very easy to forget.

/Jasper

You wrote:

Currently it requires at least one ASCII letter, whether a-z or A-Z:

```if(!preg_match('/[a-zA-Z]/', $value)) $this->error($this->_("Password does not contain at least one letter (a-z A-Z)."));
```
If it detects an error in the password, it makes it blank, requiring you to re-type it. I'm thinking I should update that preg_match to be a "\w" (any word character) rather than a-zA-Z, and that would probably solve this.