login bug

This commit is contained in:
2026-09-01 13:17:52 +05:30
parent 485f31239d
commit ab74e70ba5
4 changed files with 114 additions and 6 deletions

View File

@@ -105,7 +105,10 @@ func (s *tenantService) GetStaffs(tid int) ([]models.StaffInfo, error) {
}
func (s *tenantService) CreateStaff(user models.User) error {
return s.repo.CreateStaff(user)
// Same two fields, same reason: without an authname and a console configid
// the account is created, listed, and refused at the login screen. This path
// and users/create both make back-office accounts, so both need it.
return s.repo.CreateStaff(PrepareNewAccount(user))
}
func (s *tenantService) UpdateStaff(user models.User) error {