Merge branch 'master' of ssh://github.com/micro/services

This commit is contained in:
Asim Aslam
2022-02-09 15:08:22 +00:00
43 changed files with 565 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
User management and authentication
Authentication and user management
# User Service
The user service provides user account management and authentication. It includes the ability to
send verification and password reset emails. All data is stored in the DB service under the "users"
table.
send verification and password reset emails. All data is stored securely on the M3O platform
and can be accessed via [M3O Cloud](https://cloud.m3o.com).

View File

@@ -514,7 +514,7 @@ func (s *User) DeleteData(ctx context.Context, request *adminpb.DeleteDataReques
return err
}
if len(request.TenantId) == 0 {
if len(request.TenantId) < 10 { // deliberate length check so we don't delete all the things
return errors.BadRequest("user.DeleteData", "Missing tenant ID")
}
return s.domain.DeleteTenantData(request.TenantId)