Ran prettier to clean up some formatting

Follow up to:

https://review.discourse.org/t/feature-external-auth-when-redeeming-invites/5152?u=blake
This commit is contained in:
Blake Erickson 2019-08-11 19:00:52 -06:00
parent 87a0a6664e
commit d7c73ded14
2 changed files with 17 additions and 6 deletions

View File

@ -64,16 +64,22 @@ export default Ember.Controller.extend(
"passwordValidation.failed",
"nameValidation.failed",
"userFieldsValidation.failed",
"inviteEmailAuthValidation.failed",
"inviteEmailAuthValidation.failed"
)
submitDisabled(
usernameFailed,
passwordFailed,
nameFailed,
userFieldsFailed,
inviteEmailAuthFailed,
inviteEmailAuthFailed
) {
return usernameFailed || passwordFailed || nameFailed || userFieldsFailed || inviteEmailAuthFailed;
return (
usernameFailed ||
passwordFailed ||
nameFailed ||
userFieldsFailed ||
inviteEmailAuthFailed
);
},
@computed

View File

@ -8,13 +8,18 @@ export default Ember.Mixin.create({
},
// Validate the name.
@computed("accountEmail", "authOptions.email", "authOptions.email_valid", "authOptions.auth_provider")
@computed(
"accountEmail",
"authOptions.email",
"authOptions.email_valid",
"authOptions.auth_provider"
)
inviteEmailAuthValidation() {
if (
!this.siteSettings.enable_invite_only_oauth ||
(this.siteSettings.enable_invite_only_oauth &&
this.get("authOptions.email") === this.email &&
this.get("authOptions.email_valid"))
this.get("authOptions.email") === this.email &&
this.get("authOptions.email_valid"))
) {
return InputValidation.create({
ok: true,