mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
af9e779c59
* First (not-yet-working) attempt at self-renaming * Actually working renames * last_renamed_at * Prevent renaming while banned * Move username changing from controller to model * Username change logging * Rate limiting for username changes * username -> name and format * add UBQ * modify interval Co-authored-by: Joey <joeyponi@gmail.com>
17 lines
662 B
Text
17 lines
662 B
Text
h1 Editing Name
|
|
|
|
= form_for @changeset, Routes.registration_name_path(@conn, :update), [as: :user], fn f ->
|
|
= if @changeset.action do
|
|
.alert.alert-danger
|
|
p Oops, something went wrong! Please check the errors below.
|
|
|
|
p Enter your new name here. Usernames may only be changed once every 90 days. Please be aware that once you change your name, your previous name will be available for reuse, and someone else may claim it.
|
|
|
|
.field
|
|
= text_input f, :name, class: "input", placeholder: "Name", required: true
|
|
= error_tag f, :name
|
|
|
|
.action
|
|
= submit "Save", class: "button"
|
|
|
|
p = link "Back", to: Routes.pow_registration_path(@conn, :edit)
|