mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Don't skip TOS check when using 3rd party auth
This commit is contained in:
parent
c1aa2458f8
commit
dd84b9d79f
1 changed files with 3 additions and 1 deletions
|
@ -37,9 +37,11 @@ export default DiscourseController.extend(ModalFunctionality, {
|
||||||
},
|
},
|
||||||
|
|
||||||
submitDisabled: function() {
|
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('passwordRequired')) return false; // 3rd party auth
|
||||||
if (this.get('formSubmitted')) return true;
|
if (this.get('formSubmitted')) return true;
|
||||||
if (this.get('tosAcceptRequired') && !this.get('tosAccepted')) return true;
|
|
||||||
if (this.get('nameValidation.failed')) return true;
|
if (this.get('nameValidation.failed')) return true;
|
||||||
if (this.get('emailValidation.failed')) return true;
|
if (this.get('emailValidation.failed')) return true;
|
||||||
if (this.get('usernameValidation.failed')) return true;
|
if (this.get('usernameValidation.failed')) return true;
|
||||||
|
|
Loading…
Reference in a new issue