Method | Description | |
---|---|---|
AddRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void |
Add a remote login for a user
|
|
AddUserToRole ( System.Guid userId, System.Guid roleId ) : bool | ||
CanChangedEmail ( System.Guid userId, string email ) : bool | ||
DeleteRole ( System.Guid roleId ) : bool | ||
DeleteUser ( System.Guid userId ) : bool | ||
FindUserByExternalLogin ( string loginProvider, string loginKey ) : User |
Find a user by an external login
|
|
GetAllUsers ( int skip = null, int take = null ) : SeekedList |
All the users in the system
|
|
GetRemoteLoginsForUser ( System.Guid userId ) : IList |
Get logins for user
|
|
GetRoleById ( System.Guid id ) : Role | ||
GetRoleByName ( string roleName ) : Role | ||
GetRoles ( ) : IList |
||
GetUserByEmail ( string emailAddress ) : User | ||
GetUserById ( System.Guid userId ) : User | ||
GetUserByUserName ( string userName ) : User | ||
GetUserRoles ( System.Guid userId ) : IList |
||
GetUsersByIds ( List |
Get a list of users by ids
|
|
InsertRole ( Role role ) : bool | ||
InsertUser ( User user ) : bool | ||
IsEmailValid ( string email ) : bool | ||
IsInRole ( System.Guid userId, System.Guid roleId ) : bool | ||
IsPasswordValid ( string password ) : bool | ||
IsUserNameValid ( string userName ) : bool | ||
MembershipService ( IDbConnectionProvider conn, IPasswordManager passwordManager ) : System | ||
RemoveRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void |
Remove a remote login from a user
|
|
RemoveUserFromRole ( System.Guid userId, System.Guid roleId ) : bool | ||
ResetAccessFailedCount ( System.Guid userId ) : void |
Reset the access failed count for the user
|
|
UpdateRole ( Role role ) : bool | ||
UpdateUser ( User user ) : bool | ||
UpdateUserAvatar ( System.Guid userId, string avatarIdentifier ) : void |
Updates the user's avatar identifier.
|
|
UpdateUserProfile ( System.Guid userId, string fullName, string bio, string url, string location ) : void |
Updates just profile data about a user
|
|
ValidateUser ( User user ) : UserValidationResult |
Validate the user (update or insert)
|
public AddRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void | ||
userId | System.Guid | |
loginProvider | string | |
loginKey | string | |
return | void |
public AddUserToRole ( System.Guid userId, System.Guid roleId ) : bool | ||
userId | System.Guid | |
roleId | System.Guid | |
return | bool |
public CanChangedEmail ( System.Guid userId, string email ) : bool | ||
userId | System.Guid | |
string | ||
return | bool |
public DeleteRole ( System.Guid roleId ) : bool | ||
roleId | System.Guid | |
return | bool |
public DeleteUser ( System.Guid userId ) : bool | ||
userId | System.Guid | |
return | bool |
public FindUserByExternalLogin ( string loginProvider, string loginKey ) : User | ||
loginProvider | string | |
loginKey | string | |
return | User |
public GetAllUsers ( int skip = null, int take = null ) : SeekedList |
||
skip | int | |
take | int | |
return | SeekedList |
public GetRemoteLoginsForUser ( System.Guid userId ) : IList |
||
userId | System.Guid | |
return | IList |
public GetRoleByName ( string roleName ) : Role | ||
roleName | string | |
return | Role |
public GetUserByEmail ( string emailAddress ) : User | ||
emailAddress | string | |
return | User |
public GetUserById ( System.Guid userId ) : User | ||
userId | System.Guid | |
return | User |
public GetUserByUserName ( string userName ) : User | ||
userName | string | |
return | User |
public GetUserRoles ( System.Guid userId ) : IList |
||
userId | System.Guid | |
return | IList |
public IsInRole ( System.Guid userId, System.Guid roleId ) : bool | ||
userId | System.Guid | |
roleId | System.Guid | |
return | bool |
public IsPasswordValid ( string password ) : bool | ||
password | string | |
return | bool |
public IsUserNameValid ( string userName ) : bool | ||
userName | string | |
return | bool |
public MembershipService ( IDbConnectionProvider conn, IPasswordManager passwordManager ) : System | ||
conn | IDbConnectionProvider | |
passwordManager | IPasswordManager | |
return | System |
public RemoveRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void | ||
userId | System.Guid | |
loginProvider | string | |
loginKey | string | |
return | void |
public RemoveUserFromRole ( System.Guid userId, System.Guid roleId ) : bool | ||
userId | System.Guid | |
roleId | System.Guid | |
return | bool |
public ResetAccessFailedCount ( System.Guid userId ) : void | ||
userId | System.Guid | |
return | void |
public UpdateUserAvatar ( System.Guid userId, string avatarIdentifier ) : void | ||
userId | System.Guid | The user identifier. |
avatarIdentifier | string | The avatar identifier. |
return | void |
public UpdateUserProfile ( System.Guid userId, string fullName, string bio, string url, string location ) : void | ||
userId | System.Guid | The user identifier. |
fullName | string | The full name. |
bio | string | The bio. |
url | string | The URL. |
location | string | The location. |
return | void |
public ValidateUser ( User user ) : UserValidationResult | ||
user | User | |
return | UserValidationResult |