diff --git a/lib/core/model/doctor/user_model.dart b/lib/core/model/doctor/user_model.dart index 66768c8a..0cc7ced0 100644 --- a/lib/core/model/doctor/user_model.dart +++ b/lib/core/model/doctor/user_model.dart @@ -1,5 +1,6 @@ class UserModel { String? userID; + String? memberID; String? password; int? projectID; int? languageID; @@ -28,6 +29,7 @@ class UserModel { UserModel.fromJson(Map json) { userID = json['UserID']; + memberID = json['MemberID']; password = json['Password']; projectID = json['ProjectID']; languageID = json['LanguageID']; @@ -44,6 +46,7 @@ class UserModel { Map toJson() { final Map data = new Map(); data['UserID'] = this.userID; + data['MemberID'] = this.memberID; data['Password'] = this.password; data['ProjectID'] = this.projectID; data['LanguageID'] = this.languageID; diff --git a/lib/screens/auth/login_screen.dart b/lib/screens/auth/login_screen.dart index 374bea90..07315d91 100755 --- a/lib/screens/auth/login_screen.dart +++ b/lib/screens/auth/login_screen.dart @@ -105,6 +105,7 @@ class _LoginScreenState extends State { if (value != null) setState(() { authenticationViewModel.userInfo.userID = value.trim(); + authenticationViewModel.userInfo.memberID = value.trim(); }); }, onFieldSubmitted: () {},