mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 14:04:35 -04:00
FEATURE: full name no longer required at signup
This commit is contained in:
parent
f58c0e1f22
commit
62a6b3ce19
3 changed files with 13 additions and 20 deletions
app/assets/javascripts/discourse
config/locales
|
@ -79,14 +79,6 @@ export default DiscourseController.extend(ModalFunctionality, {
|
|||
this.fetchConfirmationValue();
|
||||
}
|
||||
|
||||
// If too short
|
||||
if (this.get('accountName').length < 3) {
|
||||
return Discourse.InputValidation.create({
|
||||
failed: true,
|
||||
reason: I18n.t('user.name.too_short')
|
||||
});
|
||||
}
|
||||
|
||||
// Looks good!
|
||||
return Discourse.InputValidation.create({
|
||||
ok: true,
|
||||
|
|
|
@ -8,17 +8,6 @@
|
|||
<div>
|
||||
<form>
|
||||
<table>
|
||||
<tr class="input">
|
||||
<td style="width:80px" class="label"><label for='new-account-name'>{{i18n user.name.title}}</label></td>
|
||||
<td style="width:496px">
|
||||
{{text-field value=accountName id="new-account-name" autofocus="autofocus"}}
|
||||
{{input-tip validation=nameValidation}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="instructions">
|
||||
<td></td>
|
||||
<td><label>{{i18n user.name.instructions}}</label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="input">
|
||||
<td class="label"><label for='new-account-email'>{{i18n user.email.title}}</label></td>
|
||||
|
@ -44,6 +33,18 @@
|
|||
<td><label>{{i18n user.username.instructions}}</label></td>
|
||||
</tr>
|
||||
|
||||
<tr class="input">
|
||||
<td style="width:80px" class="label"><label for='new-account-name'>{{i18n user.name.title}}</label></td>
|
||||
<td style="width:496px">
|
||||
{{text-field value=accountName id="new-account-name" autofocus="autofocus"}}
|
||||
{{input-tip validation=nameValidation}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="instructions">
|
||||
<td></td>
|
||||
<td><label>{{i18n user.name.instructions}}</label></td>
|
||||
</tr>
|
||||
|
||||
{{#if passwordRequired}}
|
||||
<tr class="input">
|
||||
<td class="label"><label for='new-account-password'>{{i18n user.password.title}}</label></td>
|
||||
|
|
|
@ -387,7 +387,7 @@ en:
|
|||
|
||||
name:
|
||||
title: "Name"
|
||||
instructions: "Your full name."
|
||||
instructions: "Your full name (optional)."
|
||||
too_short: "Your name is too short."
|
||||
ok: "Your name looks good."
|
||||
username:
|
||||
|
|
Loading…
Add table
Reference in a new issue