summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-08-05 16:07:20 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-08-05 16:07:20 -0400
commit7d40748d01c931cc29abf47ede2457376a007930 (patch)
tree6338c15f4e3e459a5ca8e8fb85bae82e75fefc99
parente6f8fa0fa7b49be202c5143f361432d597f5fd61 (diff)
downloadchat-7d40748d01c931cc29abf47ede2457376a007930.tar.gz
chat-7d40748d01c931cc29abf47ede2457376a007930.tar.bz2
chat-7d40748d01c931cc29abf47ede2457376a007930.zip
Added ShowTermsDuringSignup config option on the client which toggles the Terms of Service disclaimer on signup
-rw-r--r--web/react/components/signup_user_complete.jsx7
-rw-r--r--web/static/config/config.js3
2 files changed, 9 insertions, 1 deletions
diff --git a/web/react/components/signup_user_complete.jsx b/web/react/components/signup_user_complete.jsx
index a296345b1..b21553d8a 100644
--- a/web/react/components/signup_user_complete.jsx
+++ b/web/react/components/signup_user_complete.jsx
@@ -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 (
<div>
<form>
@@ -196,7 +201,7 @@ module.exports = React.createClass({
</div>
<p className='margin--extra'><button type='submit' onClick={this.handleSubmit} className='btn-primary btn'>Create Account</button></p>
{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>
</div>
);
diff --git a/web/static/config/config.js b/web/static/config/config.js
index 0d564b77e..00cae7ab2 100644
--- a/web/static/config/config.js
+++ b/web/static/config/config.js
@@ -31,6 +31,9 @@ var config = {
ReportProblemLink: "/static/help/configure_links.html",
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"]
};