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 |
Boolean |
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
Declaration
public override bool IsDeleted { get; }
Property Value
Overrides
IsMarkedForDelete
Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
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()
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 |
Boolean |
True if the right password is passed in.
|
OnPreIdUpdate()
Declaration
protected override void OnPreIdUpdate()
Overrides
SendChangePasswordEmail()
Send a change password email to the current
Declaration
public void SendChangePasswordEmail()
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)