Fixes on PasswordForm

This commit is contained in:
Antonio de la Rosa 2015-08-26 00:32:20 +02:00
parent 528d5a2d48
commit 7dbe80697e
7 changed files with 76 additions and 18 deletions

View file

@ -9,7 +9,7 @@
*/
namespace PhangoApp\PhaModels\CoreFields;
use PhangoApp\PhaModels\Forms\BaseForm;
use PhangoApp\PhaModels\Forms\PasswordForm;
use PhangoApp\PhaUtils\Utils;
class PasswordField extends CharField {
@ -72,7 +72,7 @@ class PasswordField extends CharField {
public function create_form()
{
$form=new BaseForm($this->name_component, $this->value);
$form=new PasswordForm($this->name_component, $this->value);
$form->default_value=$this->default_value;
$form->required=$this->required;
$form->label=$this->label;