C# 클래스 RibbitMvc.Services.SecurityService

상속: ISecurityService
파일 보기 프로젝트 열기: dato1357/Social-Network 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( string username, string password ) : bool
CreateUser ( SignupViewModel signupModel, bool login = true ) : User
DoesUserExist ( string username ) : bool
GetCurrentUser ( ) : User
Login ( User user ) : void
Login ( string username ) : void
Logout ( ) : void
SecurityService ( IUserService users, System.Web.SessionState.HttpSessionState session = null ) : System

메소드 상세

Authenticate() 공개 메소드

public Authenticate ( string username, string password ) : bool
username string
password string
리턴 bool

CreateUser() 공개 메소드

public CreateUser ( SignupViewModel signupModel, bool login = true ) : User
signupModel RibbitMvc.ViewModel.SignupViewModel
login bool
리턴 RibbitMvc.Models.User

DoesUserExist() 공개 메소드

public DoesUserExist ( string username ) : bool
username string
리턴 bool

GetCurrentUser() 공개 메소드

public GetCurrentUser ( ) : User
리턴 RibbitMvc.Models.User

Login() 공개 메소드

public Login ( User user ) : void
user RibbitMvc.Models.User
리턴 void

Login() 공개 메소드

public Login ( string username ) : void
username string
리턴 void

Logout() 공개 메소드

public Logout ( ) : void
리턴 void

SecurityService() 공개 메소드

public SecurityService ( IUserService users, System.Web.SessionState.HttpSessionState session = null ) : System
users IUserService
session System.Web.SessionState.HttpSessionState
리턴 System