Skip to content
Snippets Groups Projects
Commit 4074afb7 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

do not leak email to other users

parent 37ef3d8e
No related merge requests found
......@@ -2,13 +2,11 @@ import 'package:lib/lib.dart';
import 'package:api/model/user.dart';
class UserRequestResponseConverter {
static const String emailRequestResponseFieldName = "email";
static const String nameRequestResponseFieldName = "name";
static Map<String, dynamic> toResponseData(User response) {
return {
RequestResponseVariables.idFieldName: response.id,
emailRequestResponseFieldName: response.email,
nameRequestResponseFieldName: response.name,
};
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment