Changeset 6d882b1 in Klonkt for src/views/pages/account.ejs


Ignore:
Timestamp:
06/20/2026 01:24:26 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
dfc5379
Parents:
11ba289
Message:

feat(account): email address editable

Profile form gets an email field; POST /account/profile validates format +
uniqueness (no other account with that address) and updates email + session.

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

File:
1 edited

Legend:

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

    r11ba289 r6d882b1  
    6969      <form action="/account/profile" method="post" class="ax-form ax-form-bio">
    7070        <label class="ax-field">
     71          <span>E-mailadres</span>
     72          <input type="email" name="email" value="<%= account.email || '' %>" maxlength="254" autocomplete="email" placeholder="jij@email.nl">
     73        </label>
     74        <label class="ax-field">
    7175          <span>Bio</span>
    7276          <textarea name="bio" rows="3" maxlength="500" placeholder="Een korte regel over jezelf"><%= account.bio || '' %></textarea>
    7377        </label>
    7478        <div class="ax-form-actions">
    75           <button type="submit" class="ax-btn ax-btn-primary">Bio opslaan</button>
     79          <button type="submit" class="ax-btn ax-btn-primary">Opslaan</button>
    7680        </div>
    7781      </form>
Note: See TracChangeset for help on using the changeset viewer.