login bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user