Close #30 prefill with username and email Thanks @mattheobjornson 🍻

This commit is contained in:
Antonio Ramirez
2017-07-30 21:40:21 +02:00
parent 2441bd8ef6
commit 6704921b91
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,10 @@ class SettingsForm extends Model
public function __construct(SecurityHelper $securityHelper, array $config = [])
{
$this->securityHelper = $securityHelper;
$config = [
'username' => $this->getUser()->username,
'email' => $this->getUser()->unconfirmed_email? : $this->getUser()->email
];
parent::__construct($config);
}