FEATURE: full name no longer required at signup

This commit is contained in:
Jeff Atwood 2014-10-29 12:54:38 -07:00
parent f58c0e1f22
commit 62a6b3ce19
3 changed files with 13 additions and 20 deletions
app/assets/javascripts/discourse
controllers
templates/modal
config/locales

View file

@ -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,

View file

@ -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"}}
&nbsp;{{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"}}
&nbsp;{{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>

View file

@ -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: