C# Класс Worki.Memberships.AccountMembershipService

Наследование: IMembershipService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AccountMembershipService() публичный Метод

public AccountMembershipService ( ) : System
Результат System

AccountMembershipService() публичный Метод

public AccountMembershipService ( MembershipProvider provider ) : System
provider System.Web.Security.MembershipProvider
Результат System

ActivateMember() публичный Метод

public ActivateMember ( string username, string key ) : bool
username string
key string
Результат bool

ChangePassword() публичный Метод

public ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
userName string
oldPassword string
newPassword string
Результат bool

CreateUser() публичный Метод

public CreateUser ( string userName, string password, string email, bool forceActivation = false ) : MembershipCreateStatus
userName string
password string
email string
forceActivation bool
Результат MembershipCreateStatus

DeleteUser() публичный Метод

public DeleteUser ( string userName ) : bool
userName string
Результат bool

GetAdminMapping() публичный Метод

public GetAdminMapping ( IEnumerable members ) : IEnumerable
members IEnumerable
Результат IEnumerable

GetAllUsers() публичный Метод

public GetAllUsers ( int pageValue, int PageSize, int &itemTotal ) : System.Web.Security.MembershipUserCollection
pageValue int
PageSize int
itemTotal int
Результат System.Web.Security.MembershipUserCollection

GetAuthData() публичный Метод

public GetAuthData ( string username ) : AuthJson
username string
Результат AuthJson

GetPassword() публичный Метод

public GetPassword ( string username, string answer ) : string
username string
answer string
Результат string

GetUser() публичный Метод

public GetUser ( string username ) : System.Web.Security.MembershipUser
username string
Результат System.Web.Security.MembershipUser

GetUserByMail() публичный Метод

public GetUserByMail ( string email ) : string
email string
Результат string

ResetPassword() публичный Метод

public ResetPassword ( string email ) : bool
email string
Результат bool

TryCreateAccount() публичный Метод

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
Результат bool

TryCreateAccount() публичный Метод

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
Результат bool

UnlockMember() публичный Метод

public UnlockMember ( string username ) : bool
username string
Результат bool

ValidateUser() публичный Метод

public ValidateUser ( string userName, string password ) : bool
userName string
password string
Результат bool