From 30ad26b009190ed046b5ab0f1a0019131f0d492e Mon Sep 17 00:00:00 2001 From: Urko Date: Wed, 9 Aug 2023 19:34:51 +0200 Subject: [PATCH] fiix replace domain --- internal/services/prosody/account.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/prosody/account.go b/internal/services/prosody/account.go index a2ea8fb..77993b8 100644 --- a/internal/services/prosody/account.go +++ b/internal/services/prosody/account.go @@ -29,6 +29,7 @@ func (acc *account) unmarshal(data map[string]interface{}) { func (p *Prosody) loadAccount(username string) (*account, error) { if strings.Contains(username, "@") && strings.HasSuffix(username, p.plainDomain) { username = strings.Replace(username, p.plainDomain, "", -1) + username = strings.Replace(username, "@", "", -1) } data, err := os.ReadFile(p.accountsPath + username + ".dat")