Changeset 7c44c12 in Klonkt for src/views


Ignore:
Timestamp:
06/24/2026 01:45:21 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
de3d24b
Parents:
a885afc
Message:

feat(account): editable username (does not affect the fediverse handle)

Username field in the profile form + validation (format, reserved, unique).
The AP handle is the site slug, so renaming the login name is purely cosmetic.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/account.ejs

    ra885afc r7c44c12  
    7171      <form action="/account/profile" method="post" class="ax-form ax-form-bio">
    7272        <label class="ax-field">
     73          <span><%= t('acct.username') %></span>
     74          <input type="text" name="username" value="<%= account.username %>" minlength="2" maxlength="30" pattern="[A-Za-z0-9_\-]{2,30}" autocomplete="username">
     75        </label>
     76        <label class="ax-field">
    7377          <span><%= t('acct.email') %></span>
    7478          <input type="email" name="email" value="<%= account.email || '' %>" maxlength="254" autocomplete="email" placeholder="<%= t('acct.email_ph') %>">
Note: See TracChangeset for help on using the changeset viewer.