1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 20:04:24 +02:00

Prompt for nickname on registration (#4)

Allow users to set a nickname while registering, controlled by settings. Also, add a setting to hide the username input entirely and randomly generate the username.

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Alexander Skvortsov
2021-11-17 11:17:36 -05:00
committed by GitHub
parent 745de66d23
commit 3c5229610f
20 changed files with 4172 additions and 2189 deletions

View File

@@ -5,8 +5,11 @@ flarum-nicknames:
settings:
max_label: Maximum nickname length
min_label: Minimum nickname length
random_username_label: Randomize Usernames
random_username_help: This will hide the `username` input on registration, and use a random number instead. It will also make the `nickname` field mandatory. This will only take effect if "Allow setting nicknames on registration" is enabled.
regex_label: Regular expression for validation
unique_label: Require unique nicknames?
set_on_registration_label: Allow setting nicknames on registration
unique_label: Require unique nicknames
wrong_driver: You must select "nickname" as the display name driver on the <a><strong>Basics Page</strong></a> for this extension to take effect.
api:
invalid_nickname_message: This nickname is invalid. Please contact your forum administrator for more information on nickname rules.
@@ -16,9 +19,11 @@ flarum-nicknames:
title: => flarum-nicknames.ref.change_nickname
edit_user:
nicknames_heading: => flarum-nicknames.ref.change_nickname
nicknames_text: Nickname
nicknames_text: => flarum-nicknames.ref.nickname
settings:
change_nickname_button: => flarum-nicknames.ref.change_nickname
sign_up:
nickname_placeholder: => flarum-nicknames.ref.nickname
ref:
change_nickname: Change Nickname
nickname: Nickname