mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: full name no longer required at signup
This commit is contained in:
parent
f58c0e1f22
commit
62a6b3ce19
@ -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…
Reference in New Issue
Block a user