Interface IUserValidatorPlugin
Plugin for validating user-names and passwords.
Namespace: SuperOffice.CRM.Administration
Assembly: SoDataBase.dll
Syntax
public interface IUserValidatorPlugin
Remarks
These plugins are called in a chain. If any plugin rejects a user-name or password, it is rejected.
Methods
IsAssociateNameLegal(int, UserType, int, string, out string)
Check if an associate name is valid for a given user.
Declaration
bool IsAssociateNameLegal(int associateId, UserType type, int personId, string associateName, out string reason)
Parameters
Type | Name | Description |
---|---|---|
int | associateId | Associate id of the user to check if the user name is valid for. |
UserType | type | Type of user. |
int | personId | Person id of the user (if the user is a named user). |
string | associateName | Candidate for associate name. |
string | reason | The reason for denying an associate name. |
Returns
Type | Description |
---|---|
bool | Return true if the associate name is valid. |
Remarks
These plugins are called in a chain. If any plugin rejects a user-name or password, it is rejected.
IsAssociateUserNameLegal(int, UserType, int, string, out string)
Check if an associate username is valid for a given user.
Declaration
bool IsAssociateUserNameLegal(int associateId, UserType type, int personId, string associateUsername, out string reason)
Parameters
Type | Name | Description |
---|---|---|
int | associateId | Associate id of the user to check if the user name is valid for. |
UserType | type | Type of user. |
int | personId | Person id of the user (if the user is a named user). |
string | associateUsername | |
string | reason | The reason for denying a username. |
Returns
Type | Description |
---|---|
bool | Return true if the associate username is valid. |
Remarks
These plugins are called in a chain. If any plugin rejects a user-name or password, it is rejected.
IsPasswordLegal(int, UserType, int, string, out string)
Chack if the password is valid.
Declaration
bool IsPasswordLegal(int associateId, UserType type, int personId, string password, out string reason)
Parameters
Type | Name | Description |
---|---|---|
int | associateId | Associate id of the user to check if the user name is valid for. |
UserType | type | Type of user. |
int | personId | Person id of the user (if the user is a named user). |
string | password | The password candidate |
string | reason | The reason for denying the password |
Returns
Type | Description |
---|---|
bool | Return true if the password is valid |
Remarks
These plugins are called in a chain. If any plugin rejects a user-name or password, it is rejected.