diff --git a/app/assets/javascripts/discourse/app/controllers/invites-show.js b/app/assets/javascripts/discourse/app/controllers/invites-show.js index 4a6307d75c0..7079a5ea2cb 100644 --- a/app/assets/javascripts/discourse/app/controllers/invites-show.js +++ b/app/assets/javascripts/discourse/app/controllers/invites-show.js @@ -1,4 +1,4 @@ -import { alias, notEmpty, or, readOnly } from "@ember/object/computed"; +import { alias, not, or, readOnly } from "@ember/object/computed"; import Controller, { inject as controller } from "@ember/controller"; import DiscourseURL from "discourse/lib/url"; import EmberObject from "@ember/object"; @@ -33,7 +33,7 @@ export default Controller.extend( emailVerifiedByLink: alias("model.email_verified_by_link"), differentExternalEmail: alias("model.different_external_email"), accountUsername: alias("model.username"), - passwordRequired: notEmpty("accountPassword"), + passwordRequired: not("externalAuthsOnly"), successMessage: null, errorMessage: null, userFields: null, diff --git a/app/assets/javascripts/discourse/app/templates/invites/show.hbs b/app/assets/javascripts/discourse/app/templates/invites/show.hbs index cda2c355421..a5554b07dd7 100644 --- a/app/assets/javascripts/discourse/app/templates/invites/show.hbs +++ b/app/assets/javascripts/discourse/app/templates/invites/show.hbs @@ -97,10 +97,11 @@ {{password-field value=accountPassword class=(value-entered accountPassword) type="password" id="new-account-password" capsLockOn=capsLockOn}} {{input-tip validation=passwordValidation}}