fixed up password reminder E-mail generation (and E-mail generation in general)

This commit is contained in:
2025-10-08 14:33:45 -06:00
parent e657e13509
commit 05dc2aa448
7 changed files with 23 additions and 10 deletions
+4 -3
View File
@@ -369,10 +369,11 @@ func NewAccount(ctxt ui.AmContext) (string, any, error) {
ci := database.AmNewUserContactInfo(user.Uid)
ci.Prefix = dlg.Field("prefix").ValPtr()
ci.GivenName = dlg.Field("first").Value
ci.MiddleInit = dlg.Field("mid").Value
if ci.MiddleInit == "" {
ci.MiddleInit = " "
mid := dlg.Field("mid").Value
if mid == "" {
mid = " "
}
ci.MiddleInit = &mid
ci.FamilyName = dlg.Field("last").Value
ci.Suffix = dlg.Field("suffix").ValPtr()
ci.Locality = dlg.Field("loc").ValPtr()