Make surewe you only add properties that are from the UserLoginInfo type.

This commit is contained in:
alexandre-spieser
2018-01-13 00:16:53 +00:00
parent e9ce1b0111
commit 17b38aeb3f
+2 -1
View File
@@ -205,7 +205,8 @@ namespace AspNetCore.Identity.MongoDbCore.Models
{ {
return false; return false;
} }
Logins.Add(userLoginInfo);
Logins.Add(new UserLoginInfo(userLoginInfo.LoginProvider, userLoginInfo.ProviderKey, userLoginInfo.ProviderDisplayName));
return true; return true;
} }