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();
|
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!
|
// Looks good!
|
||||||
return Discourse.InputValidation.create({
|
return Discourse.InputValidation.create({
|
||||||
ok: true,
|
ok: true,
|
||||||
|
@ -8,17 +8,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
<table>
|
<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">
|
<tr class="input">
|
||||||
<td class="label"><label for='new-account-email'>{{i18n user.email.title}}</label></td>
|
<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>
|
<td><label>{{i18n user.username.instructions}}</label></td>
|
||||||
</tr>
|
</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}}
|
{{#if passwordRequired}}
|
||||||
<tr class="input">
|
<tr class="input">
|
||||||
<td class="label"><label for='new-account-password'>{{i18n user.password.title}}</label></td>
|
<td class="label"><label for='new-account-password'>{{i18n user.password.title}}</label></td>
|
||||||
|
@ -387,7 +387,7 @@ en:
|
|||||||
|
|
||||||
name:
|
name:
|
||||||
title: "Name"
|
title: "Name"
|
||||||
instructions: "Your full name."
|
instructions: "Your full name (optional)."
|
||||||
too_short: "Your name is too short."
|
too_short: "Your name is too short."
|
||||||
ok: "Your name looks good."
|
ok: "Your name looks good."
|
||||||
username:
|
username:
|
||||||
|
Loading…
Reference in New Issue
Block a user