mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: validate email address in signup form even for 3rd party auths
This commit is contained in:
parent
ba0df7e4cd
commit
4a25d55e9f
@ -42,7 +42,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
submitDisabled: function() {
|
submitDisabled: function() {
|
||||||
if (!this.get('passwordRequired')) return false; // 3rd party auth
|
if (!this.get('emailValidation.failed') && !this.get('passwordRequired')) return false; // 3rd party auth
|
||||||
if (this.get('formSubmitted')) return true;
|
if (this.get('formSubmitted')) 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user