added contact info support and the code for sending a password reminder

This commit is contained in:
2025-10-01 23:02:33 -06:00
parent 2acac513f8
commit 1952b34cce
9 changed files with 177 additions and 13 deletions
+8
View File
@@ -60,6 +60,14 @@ func init() {
}
}
// ContactInfo returns the contact info structure for the user.
func (u *User) ContactInfo() (*ContactInfo, error) {
if u.ContactID < 0 {
return nil, nil
}
return AmGetContactInfo(u.ContactID)
}
/* AmGetUser returns a reference to the specified user.
* Parameters:
* uid - The UID of the user.