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:
parent
87a0a6664e
commit
d7c73ded14
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue