NetForumAuthenticationManagerAuthenticateCustomerByPrimaryEmail(String, String) Method

Validates a customer's password, identified by their primary email address

Definition

Namespace: Ignition.Crm.AccountManagement
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
public bool AuthenticateCustomerByPrimaryEmail(
	string primaryEmailAddress,
	string password
)

Parameters

primaryEmailAddress  String
Primary email address of the customer
password  String
Password to validate

Return Value

Boolean
Whether the customer was successfully authenticated

Remarks

If your netFORUM implementation allows customers to have duplicate primary email addresses, then by definition primary email address can not always be used as a means of uniquely identifying a customer. This method will throw an InvalidOperationException exception if this ambiguity is encountered. NetFORUM does support the use of passwords to differentiate between customers sharing a primary email address, but use of this feature opens up a host of possible security problems and is not recommended. If allowPasswordBasedDisambiguation is set to true and this ambiguity is encountered, Ignition will ask netFORUM to check password against each account sharing the provided primaryEmailAddress and, if exactly one successful match is found, this method return true, and populate authenticatedCustomer with the appropriate customer. If more than one account sharing a primaryEmailAddress also shares the same password, an exception will be thrown.

See Also