C# 클래스 ScrewTurn.Wiki.LoginTools

Implements login tools.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
SetLoginCookie ( string username, string loginKey, System.DateTime expiration ) : void

Sets the login cookie.

SetupSession ( UserInfo user ) : void

Sets up a user session.

TryAutoLogin ( ) : void

Tries to automatically login the current user.

TryRedirect ( bool goHome ) : void

Tries to redirect the user to any specified URL.

VerifyReadPermissionsForCurrentNamespace ( ) : void

Verifies read permissions for the current user, redirecting to the appropriate page if no valid permissions are found.

메소드 상세

SetLoginCookie() 공개 정적인 메소드

Sets the login cookie.
public static SetLoginCookie ( string username, string loginKey, System.DateTime expiration ) : void
username string The username.
loginKey string The login key.
expiration System.DateTime The expiration date/time.
리턴 void

SetupSession() 공개 정적인 메소드

Sets up a user session.
public static SetupSession ( UserInfo user ) : void
user UserInfo The user (null for anonymous).
리턴 void

TryAutoLogin() 공개 정적인 메소드

Tries to automatically login the current user.
public static TryAutoLogin ( ) : void
리턴 void

TryRedirect() 공개 정적인 메소드

Tries to redirect the user to any specified URL.
public static TryRedirect ( bool goHome ) : void
goHome bool A value indicating whether to redirect to the home page if no explicit redirect URL is found.
리턴 void

VerifyReadPermissionsForCurrentNamespace() 공개 정적인 메소드

Verifies read permissions for the current user, redirecting to the appropriate page if no valid permissions are found.
public static VerifyReadPermissionsForCurrentNamespace ( ) : void
리턴 void