landed sysadmin user account management

This commit is contained in:
2026-02-17 21:45:16 -07:00
parent a9bbbcb6b5
commit 4f26dd3295
13 changed files with 440 additions and 38 deletions
+6
View File
@@ -246,6 +246,12 @@ func (d *Dialog) SetTargetUser(u *database.User) {
d.Title = strings.ReplaceAll(d.Title, "[USERNAME]", u.Username)
d.Subtitle = strings.ReplaceAll(d.Subtitle, "[USERNAME]", u.Username)
d.Action = strings.ReplaceAll(d.Action, "[USERNAME]", u.Username)
for i, fld := range d.Fields {
switch fld.Type {
case "userphoto", "communitylogo":
d.Fields[i].Param = strings.ReplaceAll(fld.Param, "[USERNAME]", u.Username)
}
}
}
// SetCommunity alters a dialog's content to reflect the community.