Shared secret auth support, contributed by @JeWe37

This commit is contained in:
Aine
2023-09-20 10:25:35 +03:00
parent 60b4386dd8
commit 8545ce80e4
8 changed files with 31 additions and 11 deletions

View File

@@ -6,10 +6,12 @@ import "time"
type Config struct {
// Homeserver url
Homeserver string
// Login is a MXID localpart (scheduler - OK, @scheduler:example.com - wrong)
// Login is a localpart if logging in with password (postmoogle) OR full MXID if logging in with shared secret (@postmoogle:example.com)
Login string
// Password for login/password auth only
Password string
// SharedSecret for login/sharedsecret auth only
SharedSecret string
// Domains for SMTP
Domains []string
// Port for SMTP