FIX: require full name at signup when display is suppressed and required
This commit is contained in:
parent
8fbcda5bf1
commit
b4cb2e367c
|
@ -67,6 +67,10 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
|
||||
usernameRequired: Ember.computed.not('authOptions.omit_username'),
|
||||
|
||||
fullnameRequired: function() {
|
||||
return this.get('siteSettings.full_name_required') || this.get('siteSettings.enable_names');
|
||||
}.property(),
|
||||
|
||||
passwordRequired: function() {
|
||||
return Ember.isEmpty(this.get('authOptions.auth_provider'));
|
||||
}.property('authOptions.auth_provider'),
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</tr>
|
||||
{{/if}}
|
||||
|
||||
{{#if siteSettings.enable_names}}
|
||||
{{#if fullnameRequired}}
|
||||
<tr class="input">
|
||||
<td style="width:80px" class="label">
|
||||
<label for='new-account-name'>{{i18n 'user.name.title'}}</label>
|
||||
|
|
Loading…
Reference in New Issue