- Implemented dynamic SMTP provider resolution based on user/team context, improving email sending capabilities. - Updated the Send and SendT methods to utilize identity information from the context for dynamic provider selection. - Refactored cloud encryption and decryption methods to delegate to the setting package, streamlining cryptographic operations. - Enhanced team invitation email sending to include identity context, ensuring accurate user/team information is used. - Removed obsolete crypto helper functions, simplifying the codebase and improving maintainability.
8 lines
228 B
Go
8 lines
228 B
Go
package setting
|
|
|
|
// Identity represents a scoped caller for setting resolution.
|
|
// GetMerged(userID, teamID, ns) uses these to cascade: system <- team <- user.
|
|
type Identity interface {
|
|
GetUserID() string
|
|
GetTeamID() string
|
|
}
|