Added ShowTermsDuringSignup config option on the client which toggles the Terms of Service disclaimer on signup
Этот коммит содержится в:
@@ -166,6 +166,11 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var termsDisclaimer = null;
|
||||||
|
if (config.ShowTermsDuringSignup) {
|
||||||
|
termsDisclaimer = <p>By creating an account and using Mattermost you are agreeing to our <a href={config.TermsLink}>Terms of Service</a>. If you do not agree, you cannot use this service.</p>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
@@ -196,7 +201,7 @@ module.exports = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
<p className='margin--extra'><button type='submit' onClick={this.handleSubmit} className='btn-primary btn'>Create Account</button></p>
|
<p className='margin--extra'><button type='submit' onClick={this.handleSubmit} className='btn-primary btn'>Create Account</button></p>
|
||||||
{serverError}
|
{serverError}
|
||||||
<p>By creating an account and using Mattermost you are agreeing to our <a href={ config.TermsLink }>Terms of Service</a>. If you do not agree, you cannot use this service.</p>
|
{termsDisclaimer}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ var config = {
|
|||||||
ReportProblemLink: "/static/help/configure_links.html",
|
ReportProblemLink: "/static/help/configure_links.html",
|
||||||
HomeLink: "",
|
HomeLink: "",
|
||||||
|
|
||||||
|
// Toggle whether or not users are shown a message about agreeing to the Terms of Service during the signup process
|
||||||
|
ShowTermsDuringSignup: false,
|
||||||
|
|
||||||
ThemeColors: ["#2389d7", "#008a17", "#dc4fad", "#ac193d", "#0072c6", "#d24726", "#ff8f32", "#82ba00", "#03b3b2", "#008299", "#4617b4", "#8c0095", "#004b8b", "#004b8b", "#570000", "#380000", "#585858", "#000000"]
|
ThemeColors: ["#2389d7", "#008a17", "#dc4fad", "#ac193d", "#0072c6", "#d24726", "#ff8f32", "#82ba00", "#03b3b2", "#008299", "#4617b4", "#8c0095", "#004b8b", "#004b8b", "#570000", "#380000", "#585858", "#000000"]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user