diff --git a/app/assets/javascripts/discourse/controllers/create-account.js.es6 b/app/assets/javascripts/discourse/controllers/create-account.js.es6 index 56e8aadfa30..7d846513b55 100644 --- a/app/assets/javascripts/discourse/controllers/create-account.js.es6 +++ b/app/assets/javascripts/discourse/controllers/create-account.js.es6 @@ -14,7 +14,6 @@ export default DiscourseController.extend(ModalFunctionality, { rejectedEmails: Em.A([]), rejectedPasswords: Em.A([]), prefilledUsername: null, - tosAccepted: false, userFields: null, hasAuthOptions: Em.computed.notEmpty('authOptions'), @@ -42,9 +41,6 @@ export default DiscourseController.extend(ModalFunctionality, { }, submitDisabled: function() { - // Even if password is required, we respect the tos setting - if (this.get('tosAcceptRequired') && !this.get('tosAccepted')) return true; - if (!this.get('passwordRequired')) return false; // 3rd party auth if (this.get('formSubmitted')) return true; if (this.get('nameValidation.failed')) return true; @@ -62,7 +58,7 @@ export default DiscourseController.extend(ModalFunctionality, { if (anyEmpty) { return true; } } return false; - }.property('passwordRequired', 'nameValidation.failed', 'emailValidation.failed', 'usernameValidation.failed', 'passwordValidation.failed', 'formSubmitted', 'tosAccepted', 'userFields.@each.value'), + }.property('passwordRequired', 'nameValidation.failed', 'emailValidation.failed', 'usernameValidation.failed', 'passwordValidation.failed', 'formSubmitted', 'userFields.@each.value'), passwordRequired: function() { return this.blank('authOptions.auth_provider'); @@ -343,8 +339,6 @@ export default DiscourseController.extend(ModalFunctionality, { }); }, - tosAcceptRequired: Discourse.computed.setting('tos_accept_required'), - actions: { externalLogin: function(provider) { this.get('controllers.login').send('externalLogin', provider); diff --git a/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs b/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs index a6164962ee2..3e300a3792f 100644 --- a/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs @@ -1,3 +1,3 @@ diff --git a/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs b/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs index 10b4461de7c..6d7234bc6a7 100644 --- a/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs @@ -1,4 +1,4 @@ diff --git a/app/assets/javascripts/discourse/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/templates/modal/create-account.hbs index ff5975a5e7a..05bb8a4127f 100644 --- a/app/assets/javascripts/discourse/templates/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/templates/modal/create-account.hbs @@ -88,14 +88,6 @@ {{#if showCreateForm}}