contao/test — Issue #1264: Field password always mandatory
Author: importer
Created: 2011-11-29 07:38:16+00:00
State: open
Labels: Defect, frontend

Hi Leo,

Today I need to have a Field password non mandatory that accept blank value, but it's impossible :(
It seems that a Field password is always mandatory.
Then I change in FormPassword.php

```
if (

![](strlen($varInput) && strlen($this->varValue))
{
return '';
}
```

in :

```
if ()strlen($varInput) &&

![](strlen($this->varValue) && )$this->mandatory)
{
return '';
}
```

Is it good ?

--- _Originally created by cyril on December 9th, 2009, at 07:00pm (ID 1264)_