mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 07:03:10 +08:00
FIX: Don't skip TOS check when using 3rd party auth
This commit is contained in:
parent
c1aa2458f8
commit
dd84b9d79f
@ -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…
x
Reference in New Issue
Block a user