mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 14:04:35 -04:00
Don't disable the create account button for signups from 3rd parties. Server will return error messages if something is wrong.
This commit is contained in:
parent
68fcb66443
commit
09dc3f128f
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ export default Discourse.Controller.extend(Discourse.ModalFunctionality, {
|
|||
},
|
||||
|
||||
submitDisabled: function() {
|
||||
if (!this.get('passwordRequired')) return false; // 3rd party auth
|
||||
if (this.get('formSubmitted')) return true;
|
||||
if (this.get('tosAcceptRequired') && !this.get('tosAccepted')) return true;
|
||||
if (this.get('nameValidation.failed')) return true;
|
||||
|
@ -43,7 +44,7 @@ export default Discourse.Controller.extend(Discourse.ModalFunctionality, {
|
|||
if (this.get('usernameValidation.failed')) return true;
|
||||
if (this.get('passwordValidation.failed')) return true;
|
||||
return false;
|
||||
}.property('nameValidation.failed', 'emailValidation.failed', 'usernameValidation.failed', 'passwordValidation.failed', 'formSubmitted', 'tosAccepted'),
|
||||
}.property('passwordRequired', 'nameValidation.failed', 'emailValidation.failed', 'usernameValidation.failed', 'passwordValidation.failed', 'formSubmitted', 'tosAccepted'),
|
||||
|
||||
passwordRequired: function() {
|
||||
return this.blank('authOptions.auth_provider');
|
||||
|
|
Loading…
Add table
Reference in a new issue