Close #30 prefill with username and email Thanks @mattheobjornson 🍻
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user