user accounts

This commit is contained in:
2026-09-01 13:53:22 +05:30
parent 6b27448ff9
commit 1e3fe88e87
2 changed files with 75 additions and 0 deletions

View File

@@ -167,6 +167,12 @@ func (s *userService) AppLogin(user models.User) (models.TenantUserInfo, fiber.M
}
func (s *userService) CreateUser(user models.User) (models.UserInfo, error) {
// Without an authname and a console configid the account is created,
// listed, and then refused at the login screen: `weblogin` matches
// `WHERE authname = ? AND configid = ?` and never looks at the email
// column. See PrepareNewAccount.
user = PrepareNewAccount(user)
// Call repository to create user
userid, err := s.repo.CreateUser(user)
if err != nil {