public function setConfig(\Config $config)
 {
     parent::setConfig($config);
     if ($this->emailEnabled === null) {
         $this->emailEnabled = $this->config->get('EnableEmail');
     }
     if ($this->newPasswordExpiry === null) {
         $this->newPasswordExpiry = $this->config->get('NewPasswordExpiry');
     }
     if ($this->passwordReminderResendTime === null) {
         $this->passwordReminderResendTime = $this->config->get('PasswordReminderResendTime');
     }
 }
 /**
  * @param array $params Settings
  *  - loginOnly: If true, the local passwords are for legacy logins only:
  *    the local password will be invalidated when authentication is changed
  *    and new users will not have a valid local password set.
  */
 public function __construct($params = [])
 {
     parent::__construct($params);
     $this->loginOnly = !empty($params['loginOnly']);
 }
 public function getUniqueId()
 {
     return parent::getUniqueId() . ':' . get_class($this->auth);
 }