Class SoUserCredential
Inheritance
SoUserCredential
Assembly: SoDataBase.dll
Syntax
public sealed class SoUserCredential : NestedPersistFacade, INestedPersist
Constructors
SoUserCredential(CredentialsRow)
Declaration
public SoUserCredential(CredentialsRow row)
Parameters
SoUserCredential(string)
Declaration
public SoUserCredential(string credentialType)
Parameters
Type |
Name |
Description |
string |
credentialType |
|
Properties
CanChangePassword
Is this plugin able to change password for the current
Declaration
public bool CanChangePassword { get; }
Property Value
CanCreatePerson
Declaration
public bool CanCreatePerson { get; }
Property Value
CanSendChangePasswordMail
Is this plugin able to send a change password email for the current
Declaration
public bool CanSendChangePasswordMail { get; }
Property Value
CanValidatePassword
Is the plugin able to validfate the password.
Declaration
public bool CanValidatePassword { get; }
Property Value
Type |
Description |
bool |
True if it is possible to validate the password.
|
ControlType
Declaration
public CredentialControlType ControlType { get; }
Property Value
Description
Declaration
public string Description { get; }
Property Value
DisplayType
Declaration
public string DisplayType { get; }
Property Value
DisplayValue
Declaration
public string DisplayValue { get; set; }
Property Value
IsDeleted
Gets a value indicating whether this instance is deleted.
Declaration
public override bool IsDeleted { get; }
Property Value
Type |
Description |
bool |
true if this instance is deleted; otherwise, false .
|
Overrides
IsMarkedForDelete
Gets or sets a value indicating whether this instance is marked for delete.
Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
Type |
Description |
bool |
true if this instance is marked for delete; otherwise, false .
|
Overrides
Plugin
Declaration
public IUserCredentialPlugin Plugin { get; }
Property Value
Row
Declaration
public CredentialsRow Row { get; }
Property Value
Type
Declaration
public string Type { get; }
Property Value
Value
Declaration
public string Value { get; set; }
Property Value
Methods
ChangePassword(string, string)
Changes the account password from the old password to the new password.
Declaration
public void ChangePassword(string oldPassword, string newPassword)
Parameters
Type |
Name |
Description |
string |
oldPassword |
The old password to change from. This must be the current calid password.
|
string |
newPassword |
The new password to change to.
|
GetFacadingItems()
Implement this method to expose items that needs to be persisted.
Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Overrides
GetSupportedChangePasswordTypes()
Returns the change password types supported by this plugin
Declaration
public ChangePasswordType[] GetSupportedChangePasswordTypes()
Returns
IsPasswordLegal(SoUser, string, out string)
Declaration
public bool IsPasswordLegal(SoUser soUser, string value, out string reason)
Parameters
Returns
IsPasswordValid(string)
Check if password is valid.
Declaration
public bool IsPasswordValid(string password)
Parameters
Type |
Name |
Description |
string |
password |
The password to check if if it is valid (e.g. that means that this is the current password.)
|
Returns
Type |
Description |
bool |
True if the right password is passed in.
|
OnPreIdUpdate()
Allow for "fake id's" to be forced upon related objects.
Declaration
protected override void OnPreIdUpdate()
Overrides
SendChangePasswordEmail()
Send a change password email to the current
Declaration
public void SendChangePasswordEmail()
Implements
Extension Methods