C# Class DBAuth.DBAuthRepository

Datei anzeigen Open project: lthomaz/ASP.NET-MVC-Custom-Authentication Class Usage Examples

Public Methods

Method Description
ActivateUser ( string username, string key ) : bool
CreateUser ( string username, string password, string email ) : System.Web.Security.MembershipUser
GetUser ( string username ) : System.Web.Security.MembershipUser
GetUserNameByEmail ( string email ) : string
ValidateUser ( string username, string password ) : bool

Private Methods

Method Description
CreatePasswordHash ( string pwd, string salt ) : string
CreateSalt ( ) : string
GenerateKey ( ) : string
SendActivationEmail ( User user ) : void

Method Details

ActivateUser() public method

public ActivateUser ( string username, string key ) : bool
username string
key string
return bool

CreateUser() public method

public CreateUser ( string username, string password, string email ) : System.Web.Security.MembershipUser
username string
password string
email string
return System.Web.Security.MembershipUser

GetUser() public method

public GetUser ( string username ) : System.Web.Security.MembershipUser
username string
return System.Web.Security.MembershipUser

GetUserNameByEmail() public method

public GetUserNameByEmail ( string email ) : string
email string
return string

ValidateUser() public method

public ValidateUser ( string username, string password ) : bool
username string
password string
return bool