feat: re-enable nickname editing in user profile

- Restore nickname field in modify.php SQL update query
- Remove disabled attribute from nickname input in modifypage.php template
- Allow users to update their nickname through profile modification
- Maintain existing HTML entity encoding for security
This commit is contained in:
2026-03-15 13:15:09 +08:00
parent 055223bfdf
commit 489f11ce35
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<?php require_once('./include/set_post_key.php');?>
<div class="field">
<label for="username"><?php echo $MSG_NICK?>*</label>
<input disabled="disabled" name="nick" placeholder="<?php echo $MSG_Input.$MSG_NICK?>" type="text" value="<?php echo htmlentities($row['nick'],ENT_QUOTES,"UTF-8")?>">
<input name="nick" placeholder="<?php echo $MSG_Input.$MSG_NICK?>" type="text" value="<?php echo htmlentities($row['nick'],ENT_QUOTES,"UTF-8")?>">
</div>
<div class="field">
<label class="ui header"><?php echo $MSG_PASSWORD?>*</label>