C# Class Worki.Memberships.AccountMembershipService

Inheritance: IMembershipService
显示文件 Open project: tah91/eworkyWebSite

Public Methods

Method Description
AccountMembershipService ( ) : System
AccountMembershipService ( MembershipProvider provider ) : System
ActivateMember ( string username, string key ) : bool
ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
CreateUser ( string userName, string password, string email, bool forceActivation = false ) : MembershipCreateStatus
DeleteUser ( string userName ) : bool
GetAdminMapping ( IEnumerable members ) : IEnumerable
GetAllUsers ( int pageValue, int PageSize, int &itemTotal ) : System.Web.Security.MembershipUserCollection
GetAuthData ( string username ) : AuthJson
GetPassword ( string username, string answer ) : string
GetUser ( string username ) : System.Web.Security.MembershipUser
GetUserByMail ( string email ) : string
ResetPassword ( string email ) : bool
TryCreateAccount ( string email, MemberMainData memberData, int &memberId, bool forceActivation = true ) : bool

Try to create an account for the given mail and data, already activated if account aleady exists, do nothing

TryCreateAccount ( string email, string password, MemberMainData memberData, int &memberId, bool forceActivation = true ) : bool

Try to create an account for the given mail and data, already activated if account aleady exists, do nothing

UnlockMember ( string username ) : bool
ValidateUser ( string userName, string password ) : bool

Private Methods

Method Description
TryCreateAccount ( string email, string password, bool dummyPassword, MemberMainData memberData, int &memberId, bool forceActivation ) : bool

Try to create an account for the given mail and data, already activated if account aleady exists, do nothing

Method Details

AccountMembershipService() public method

public AccountMembershipService ( ) : System
return System

AccountMembershipService() public method

public AccountMembershipService ( MembershipProvider provider ) : System
provider System.Web.Security.MembershipProvider
return System

ActivateMember() public method

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

ChangePassword() public method

public ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
userName string
oldPassword string
newPassword string
return bool

CreateUser() public method

public CreateUser ( string userName, string password, string email, bool forceActivation = false ) : MembershipCreateStatus
userName string
password string
email string
forceActivation bool
return MembershipCreateStatus

DeleteUser() public method

public DeleteUser ( string userName ) : bool
userName string
return bool

GetAdminMapping() public method

public GetAdminMapping ( IEnumerable members ) : IEnumerable
members IEnumerable
return IEnumerable

GetAllUsers() public method

public GetAllUsers ( int pageValue, int PageSize, int &itemTotal ) : System.Web.Security.MembershipUserCollection
pageValue int
PageSize int
itemTotal int
return System.Web.Security.MembershipUserCollection

GetAuthData() public method

public GetAuthData ( string username ) : AuthJson
username string
return AuthJson

GetPassword() public method

public GetPassword ( string username, string answer ) : string
username string
answer string
return string

GetUser() public method

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

GetUserByMail() public method

public GetUserByMail ( string email ) : string
email string
return string

ResetPassword() public method

public ResetPassword ( string email ) : bool
email string
return bool

TryCreateAccount() public method

Try to create an account for the given mail and data, already activated if account aleady exists, do nothing
public TryCreateAccount ( string email, MemberMainData memberData, int &memberId, bool forceActivation = true ) : bool
email string email of the account to create
memberData Worki.Data.Models.MemberMainData member data of the account
memberId int filled by the fectched account
forceActivation bool
return bool

TryCreateAccount() public method

Try to create an account for the given mail and data, already activated if account aleady exists, do nothing
public TryCreateAccount ( string email, string password, MemberMainData memberData, int &memberId, bool forceActivation = true ) : bool
email string email of the account to create
password string account password
memberData Worki.Data.Models.MemberMainData member data of the account
memberId int filled by the fectched account
forceActivation bool
return bool

UnlockMember() public method

public UnlockMember ( string username ) : bool
username string
return bool

ValidateUser() public method

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