|
@@ -253,12 +253,8 @@ class LoginForm extends React.Component {
|
|
|
isLdapStrategySetup,
|
|
isLdapStrategySetup,
|
|
|
isRegistrationEnabled,
|
|
isRegistrationEnabled,
|
|
|
objOfIsExternalAuthEnableds,
|
|
objOfIsExternalAuthEnableds,
|
|
|
- appContainer,
|
|
|
|
|
} = this.props;
|
|
} = this.props;
|
|
|
|
|
|
|
|
- const growiUrlHost = appContainer.config.crowi.url;
|
|
|
|
|
- const passwordResetRequestPageUrl = urljoin(growiUrlHost, '_api/v3/password');
|
|
|
|
|
-
|
|
|
|
|
const isLocalOrLdapStrategiesEnabled = isLocalStrategySetup || isLdapStrategySetup;
|
|
const isLocalOrLdapStrategiesEnabled = isLocalStrategySetup || isLdapStrategySetup;
|
|
|
const isSomeExternalAuthEnabled = Object.values(objOfIsExternalAuthEnableds).some(elem => elem);
|
|
const isSomeExternalAuthEnabled = Object.values(objOfIsExternalAuthEnableds).some(elem => elem);
|
|
|
|
|
|
|
@@ -273,7 +269,7 @@ class LoginForm extends React.Component {
|
|
|
{isRegistrationEnabled && (
|
|
{isRegistrationEnabled && (
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col-12 text-right py-2">
|
|
<div className="col-12 text-right py-2">
|
|
|
- <a href={passwordResetRequestPageUrl} id="reset-password" className="d-block link-switch mb-1">
|
|
|
|
|
|
|
+ <a href="/forgot-password" id="reset-password" className="d-block link-switch mb-1">
|
|
|
<i className="icon-key"></i> {t('forgot_password')}
|
|
<i className="icon-key"></i> {t('forgot_password')}
|
|
|
</a>
|
|
</a>
|
|
|
<a href="#register" id="register" className="link-switch" onClick={this.switchForm}>
|
|
<a href="#register" id="register" className="link-switch" onClick={this.switchForm}>
|