Wednesday, June 20, 2018

ASp.Net Identity implementation with IRole

The OOB templates of asp.net identity models and owin security setup are great, but sometimes we don't need all the complex functionality presented there and instead just want simplistic user identity validation. The post below gives a overview of how this could be achieved


https://weblogs.asp.net/imranbaloch/a-simple-implementation-of-microsoft-aspnet-identity

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...