Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

fixed bugs.

Jack3b0ac92ff1b6
diff --git a/core/internal/controller/rbac/rbac_v1_auth.go b/core/internal/controller/rbac/rbac_v1_auth.go
index a99acaeb..da0272d3 100644
--- a/core/internal/controller/rbac/rbac_v1_auth.go
+++ b/core/internal/controller/rbac/rbac_v1_auth.go
@@ -80,14 +80,14 @@ func (c *ControllerV1) Login(ctx context.Context, req *v1.LoginReq) (res *v1.Log
// Verify username and password
account, err := service.Account().Login(ctx, req.Username, req.Password)
if err != nil {
- err = fmt.Errorf("Invalid username or password: %w", err)
+ err = fmt.Errorf("Invalid username or password")
return
}
// Get account roles
roles, err := service.Account().GetAccountRoles(ctx, account.AccountId)
if err != nil {
- err = fmt.Errorf("Failed to get account roles: %w", err)
+ err = fmt.Errorf("Failed to get account roles")
return
}