ModelFactoryGeneratedEncryptedPassword Method

Generates an encrypted password for a recipient.

Definition

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