Methods
ValidatePasswordComplexity
(String,String) Method
ValidatePasswordComplexity (String key, String password)
Check that the specified password is valid.
Parameters
Name |
Type |
key
|
String
The key for model state errors. This is generally the name of the model property being validated.
|
password
|
String
|
VerifyPassword
(User,String) Method
VerifyPassword (User user, String password)
Verify that the user's password is correct
SetPasswordResetToken
(User) Method
SetPasswordResetToken (User user)
Generate and set a random password reset token.
SetVerificationToken
(User) Method
SetVerificationToken (User user)
Generate and set a random verification token.
CreateNew
(Site) Method
CreateNew (Nucleus.Abstractions.Models.Site)
Get
(Site,Guid) Method
Get (Site site, Guid id)
Get
(Guid) Method
Get (Guid id)
Get
(Site,String) Method
Get (Site site, String userName)
Retrieve an existing
Models.User from the database, matching by the specified userName.
GetByEmail
(Site,String) Method
GetByEmail (Site site, String email)
Retrieve an existing
Models.User from the database, matching by the specified userName.
GetSystemAdministrator
(String) Method
GetSystemAdministrator (String userName)
Retrieve an existing System Administrator
Models.User from the database, matching by the specified userName.
AddRole
(User,Guid) Method
AddRole (User user, Guid roleId)
RemoveRole
(User,Guid) Method
RemoveRole (User user, Guid roleId)
List
(Site) Method
List (Site site)
List
(Site,PagingSettings) Method
List (Site site, PagingSettings pagingSettings)
ListSystemAdministrators
(PagingSettings) Method
ListSystemAdministrators (Nucleus.Abstractions.Models.Paging.PagingSettings)
CountSystemAdministrators
CountSystemAdministrators ()
Search
(Site,String,PagingSettings) Method
Search (Site site, String searchTerm, PagingSettings pagingSettings)
Returns a list of
Models.Users whi match the specified searchTerm.
Save
(Site,User) Method
Save (Site site, User user)
SetNewUserFlags
(Site,User) Method
SetNewUserFlags (Site site, User user)
Set
Models.User approved and verified flags based on site settings.
SaveSecrets
(User) Method
SaveSecrets (User user)
Save user secrets.
SaveSystemAdministrator
(User) Method
SaveSystemAdministrator (User user)
Create or update the specified System Administrator
Models.User.
Delete
(User) Method
Delete (User user)
ListUsersInRole
(Role) Method
ListUsersInRole (Role role)
ListUsersInRole
(Role,PagingSettings) Method
ListUsersInRole (Role role, PagingSettings pagingSettings)