mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Merge branch 'master' of ssh://github.com/micro/services
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user