added user.NewAuthToken

This commit is contained in:
2025-10-03 23:29:04 -06:00
parent 1952b34cce
commit f728eb21b0
3 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func Login(ctxt ui.AmContext) (string, any, error) {
ci, uerr = user.ContactInfo()
if uerr == nil {
if ci != nil && ci.Email != nil && *ci.Email != "" {
msg := email.AmNewEmailMessage(user.Uid, ctxt.RemoteIP())
msg := email.AmNewEmailMessage(ctxt.CurrentUserId(), ctxt.RemoteIP())
msg.AddTo(*ci.Email, "")
msg.SetTemplate("pass_remind.jet")
msg.AddVariable("username", user.Username)