This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is how we want to consume the factory, here in the context of a razor page: | |
public class IndexModel : PageModel | |
{ | |
private readonly IShapeRendererFactory _shapeRendererFactory; | |
public IndexModel( IShapeRendererFactory shapeRendererFactory) | |
{ | |
_shapeRendererFactory = shapeRendererFactory; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +paulvanbladel is my blockchain ID. https://onename.com/paulvanbladel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace | |
User.findOne(searchUser, function (err, user) { ... | |
with: | |
User.findOne({"email": {$regex: new RegExp(searchUser, "i")}}, function (err, user) { .. |