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

@ -1,7 +1,9 @@
# CHANGELOG
## 1.0.10 - Work In Progress
- Enh #32: Added Italian Translation (maxxer)
- Fix #30: Prefill username and email in SettingsForm (mattheobjornson)
## 1.0.9 - July 19, 2017
- Enh #22: Added impersonation feature (@tonydspaniard)

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);
}