mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix build
This commit is contained in:
@@ -72,7 +72,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
}.property('authOptions.auth_provider'),
|
}.property('authOptions.auth_provider'),
|
||||||
|
|
||||||
passwordInstructions: function() {
|
passwordInstructions: function() {
|
||||||
return this.get('isDeveloper') ? I18n.t('user.password.instructions', {count: this.siteSettings.min_admin_password_length}) : I18n.t('user.password.instructions', {count: this.siteSettings.min_password_length});
|
return this.get('isDeveloper') ? I18n.t('user.password.instructions', {count: Discourse.SiteSettings.min_admin_password_length}) : I18n.t('user.password.instructions', {count: Discourse.SiteSettings.min_password_length});
|
||||||
}.property('isDeveloper'),
|
}.property('isDeveloper'),
|
||||||
|
|
||||||
nameInstructions: function() {
|
nameInstructions: function() {
|
||||||
@@ -285,7 +285,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If too short
|
// If too short
|
||||||
const passwordLength = this.get('isDeveloper') ? this.siteSettings.min_admin_password_length : this.siteSettings.min_password_length;
|
const passwordLength = this.get('isDeveloper') ? Discourse.SiteSettings.min_admin_password_length : Discourse.SiteSettings.min_password_length;
|
||||||
if (password.length < passwordLength) {
|
if (password.length < passwordLength) {
|
||||||
return Discourse.InputValidation.create({
|
return Discourse.InputValidation.create({
|
||||||
failed: true,
|
failed: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user