Change Name

<% if CurrentUser.user.name_invalid? %>

Your current username is invalid. You must change your username to continue using <%= Danbooru.config.canonical_app_name %>.

Current name: <%= CurrentUser.user.name %>.
Error: <%= CurrentUser.user.name_errors.full_messages.join(". ").html_safe %>.

<% end %>
Rules
  • Names can contain only letters, numbers, underscore ('_'), period ('.'), and dash ('-') characters.
  • Names must start and end with a letter or number.
  • Names must be less than 25 characters long.
  • Names can't insult or impersonate other users.
  • Names are case-insensitive.
  • Your previous names will be visible on your profile to other Danbooru members, but they won't be visible to search engines.
  • You can't change your name more than once per week.
<%= edit_form_for(@change_request) do |f| %> <%= f.input :desired_name, label: "New name" %> <%= f.submit "Submit" %> <% end %>
<%= render "secondary_links" %>