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")