ModelFactoryGeneratedEncryptedPassword Method

Generates an encrypted password for a recipient.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static EncryptedPasswordDto GeneratedEncryptedPassword(
	AccountDto recipient,
	AccountDto createdBy,
	string password
)

Parameters

recipient  AccountDto
Account receiving the new password
createdBy  AccountDto
User who created the password (for new accounts this means it's not recipient)
password  String
Password

Return Value

EncryptedPasswordDto
Generated password

Exceptions

ArgumentNullExceptionThrown if recipient or createdBy is .
ArgumentExceptionThrown if password is null or empty.

See Also