for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Modules\Profile\Form {
use Utils\Form;
class Password extends Form {
# Constructor
public function __construct() {
parent::__construct('edit');
# Add fields
$this->addText('password', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
$this->addText('password_new', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
$this->addText('password_retype', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
}