/** * Array of field name => values for sending a reset password E-Mail * * @param string $locale * @return array */ public function getResetPasswordMailFields($locale = null) { $result['reset_key'] = $this->getPasswordResetKey(); $result['reset_url'] = $this->getBaseOrganization()->getLoginUrl() . '/index/resetpassword/key/' . $result['reset_key']; $result['reset_in_hours'] = $this->definition->getResetKeyDurationInHours(); return $result + $this->getMailFields($locale); }