C# Class Agribusiness.Web.Controllers.Filters.MembershipUserOnlyAttribute

Inheritance: System.Web.Mvc.AuthorizeAttribute, IAuthorizationFilter
Afficher le fichier Open project: ucdavis/Agribusiness

Méthodes protégées

Méthode Description
AuthorizeCore ( System httpContext ) : bool
HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Private Methods

Méthode Description
IsValidEmail ( string email ) : bool

method for determining is the user provided a valid email address We use regular expressions in this check, as it is a more thorough way of checking the address provided

http://www.dreamincode.net/code/snippet1374.htm

Method Details

AuthorizeCore() protected méthode

protected AuthorizeCore ( System httpContext ) : bool
httpContext System
Résultat bool

HandleUnauthorizedRequest() protected méthode

protected HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext
Résultat void