Class DefualtUserValidatorPlugin
Implements
Inherited Members
Namespace: SuperOffice.CRM.Administration
Assembly: SoDataBase.dll
Syntax
[UserValidatorPlugin("DefaultUserValidatorPlugin")]
public sealed class DefualtUserValidatorPlugin : IUserValidatorPlugin
Constructors
DefualtUserValidatorPlugin()
Declaration
public DefualtUserValidatorPlugin()
Methods
IsAssociateNameLegal(int, UserType, int, string, out string)
Check if a user name is already in use
Declaration
public bool IsAssociateNameLegal(int associateId, UserType type, int personId, string userName, 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 | userName | Candidate for user name. |
string | reason | The reason for denying a user name. |
Returns
Type | Description |
---|---|
bool | Return true if the user name is valid. |
IsAssociateUserNameLegal(int, UserType, int, string, out string)
Check if an associate username is valid for a given user.
Declaration
public 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. |
IsPasswordLegal(int, UserType, int, string, out string)
Password policy validation - implementing the rules using the PasswordRules table, which now has a nice GUI faked through the preference system
Declaration
public bool IsPasswordLegal(int associateId, UserType type, int personId, string password, out string reason)
Parameters
Type | Name | Description |
---|---|---|
int | associateId | |
UserType | type | |
int | personId | |
string | password | |
string | reason |
Returns
Type | Description |
---|---|
bool |