mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-05 13:52:15 +00:00
* feat: add filesystem and stdout notification channels * configure through env vars * compile * feat: add compact option for debug notification channels * fix channel mock generation * avoid sensitive information in error message Co-authored-by: Livio Amstutz <[email protected]> * add review improvements Co-authored-by: Livio Amstutz <[email protected]>
19 lines
264 B
Go
19 lines
264 B
Go
package smtp
|
|
|
|
type EmailConfig struct {
|
|
SMTP SMTP
|
|
Tls bool
|
|
From string
|
|
FromName string
|
|
}
|
|
|
|
type SMTP struct {
|
|
Host string
|
|
User string
|
|
Password string
|
|
}
|
|
|
|
func (smtp *SMTP) HasAuth() bool {
|
|
return smtp.User != "" && smtp.Password != ""
|
|
}
|