Method | Description | |
---|---|---|
Create ( RockContext rockContext, Rock person, AuthenticationServiceType serviceType, int entityTypeId, string username, string password, bool isConfirmed ) : UserLogin |
Creates a new Rock.Model.UserLogin
|
|
Create ( RockContext rockContext, Rock person, AuthenticationServiceType serviceType, int entityTypeId, string username, string password, bool isConfirmed, bool isRequirePasswordChange ) : UserLogin |
Creates the specified rock context.
|
|
FriendlyPasswordRules ( ) : string |
Returns a user friendly description of the password rules.
|
|
GetByApiKey ( string apiKey ) : IQueryable |
Returns an enumerable collection of Rock.Model.UserLogin entities by their API Key.
|
|
GetByConfirmationCode ( string code ) : UserLogin |
Returns a Rock.Model.UserLogin by an encrypted confirmation code.
|
|
GetByPersonId ( int personId ) : IQueryable |
Gets an enumerable collection of Rock.Model.UserLogin entities by a
|
|
GetByUserName ( string userName ) : UserLogin |
GetsRock.Model.UserLogin by User Name
|
|
GetCurrentUser ( ) : UserLogin |
Returns the Rock.Model.UserLogin of the user who is currently logged in.
|
|
GetCurrentUser ( bool userIsOnline ) : UserLogin |
Returns the Rock.Model.UserLogin
|
|
IsPasswordValid ( string password ) : bool |
Checks to see if the given password is valid according to the PasswordRegex (if defined).
|
|
SetPassword ( UserLogin user, string password ) : void |
Sets the a
|
|
UpdateLastLogin ( string userName ) : void |
Updates the last login.
|
Method | Description | |
---|---|---|
UpdateFailureCount ( UserLogin user ) : void |
Updates the Rock.Model.UserLogin failed password attempt count.
|
public static Create ( RockContext rockContext, Rock person, AuthenticationServiceType serviceType, int entityTypeId, string username, string password, bool isConfirmed ) : UserLogin | ||
rockContext | RockContext | The rock context. |
person | Rock | The |
serviceType | AuthenticationServiceType | The |
entityTypeId | int | The entity type identifier. |
username | string | A |
password | string | A |
isConfirmed | bool | A |
return | UserLogin |
public static Create ( RockContext rockContext, Rock person, AuthenticationServiceType serviceType, int entityTypeId, string username, string password, bool isConfirmed, bool isRequirePasswordChange ) : UserLogin | ||
rockContext | RockContext | The rock context. |
person | Rock | The person. |
serviceType | AuthenticationServiceType | Type of the service. |
entityTypeId | int | The entity type identifier. |
username | string | The username. |
password | string | The password. |
isConfirmed | bool | if set to |
isRequirePasswordChange | bool | if set to |
return | UserLogin |
public static FriendlyPasswordRules ( ) : string | ||
return | string |
public GetByApiKey ( string apiKey ) : IQueryable |
||
apiKey | string | A |
return | IQueryable |
public GetByConfirmationCode ( string code ) : UserLogin | ||
code | string | A |
return | UserLogin |
public GetByPersonId ( int personId ) : IQueryable |
||
personId | int | A |
return | IQueryable |
public GetByUserName ( string userName ) : UserLogin | ||
userName | string | A |
return | UserLogin |
public static GetCurrentUser ( bool userIsOnline ) : UserLogin | ||
userIsOnline | bool | A |
return | UserLogin |
public static IsPasswordValid ( string password ) : bool | ||
password | string | A password to verify. |
return | bool |
public SetPassword ( UserLogin user, string password ) : void | ||
user | UserLogin | The |
password | string | A |
return | void |
public static UpdateLastLogin ( string userName ) : void | ||
userName | string | Name of the user. |
return | void |