ModelFactoryGeneratedEncryptedPassword Method

Generates an encrypted password for a recipient.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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