C# 클래스 Agribusiness.Web.Controllers.Filters.MembershipUserOnlyAttribute

상속: System.Web.Mvc.AuthorizeAttribute, IAuthorizationFilter
파일 보기 프로젝트 열기: ucdavis/Agribusiness

보호된 메소드들

메소드 설명
AuthorizeCore ( System httpContext ) : bool
HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

AuthorizeCore() 보호된 메소드

protected AuthorizeCore ( System httpContext ) : bool
httpContext System
리턴 bool

HandleUnauthorizedRequest() 보호된 메소드

protected HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext
리턴 void