Table of Contents

Codeunit "Password Dialog Management"

ID 9810
Namespace: System.Security.AccessControl

Exposes functionality to open dialogs for entering passwords with different settings.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

OpenSecretPasswordDialog

Opens a dialog for the user to enter a password and returns the typed password if there is no validation error, otherwise an empty text is returned.

procedure OpenSecretPasswordDialog(DisablePasswordValidation: Boolean, DisablePasswordConfirmation: Boolean): SecretText

Parameters

Name Type Description
DisablePasswordValidation Boolean

Disables the checks for the password validity. Default value is false.

DisablePasswordConfirmation Boolean

If set to true the new password is only needed once. Default value is false.

Returns

Type Description
SecretText

The typed password, or empty text if the password validations fail.

OpenSecretPasswordDialog

Opens a dialog for the user to enter a password and returns the typed password if there is no validation error, otherwise an empty text is returned.

procedure OpenSecretPasswordDialog(DisablePasswordValidation: Boolean): SecretText

Parameters

Name Type Description
DisablePasswordValidation Boolean

Disables the checks for the password validity. Default value is false.

Returns

Type Description
SecretText

The typed password, or empty text if the password validations fail.

OpenSecretPasswordDialog

Opens a dialog for the user to enter a password and returns the typed password if there is no validation error, otherwise an empty text is returned.

procedure OpenSecretPasswordDialog(): SecretText

Returns

Type Description
SecretText

The typed password, or empty text if the password validations fail.

OpenPasswordChangeDialog

Opens a dialog for the user to change a password and returns the new typed password if there is no validation error, otherwise an empty text are returned.

procedure OpenPasswordChangeDialog(CurrentPassword: SecretText, var NewPassword: SecretText)

Parameters

Name Type Description
CurrentPassword SecretText

In parameter, the current password to compare with the password user typed on the dialog.

NewPassword SecretText

Out parameter, the new password user typed on the dialog.

ValidatedPasswordMatch

Compare the passwords and return the error if the passwords do not match

procedure ValidatedPasswordMatch(CurrentPasswordToCompare: SecretText, PasswordToCompare: SecretText)

Parameters

Name Type Description
CurrentPasswordToCompare SecretText

In parameter, the current password to compare with the password user provided.

PasswordToCompare SecretText

Thepassword user typed.

Events

OnSetMinPasswordLength

Event to override the Minimum number of characters in the password. The Minimum length can only be increased not decreased. Default value is 8 characters long.

[IntegrationEvent(False,False)]
internal procedure OnSetMinPasswordLength(var MinPasswordLength: Integer)

Parameters

Name Type Description
MinPasswordLength Integer

The number of characters to be set as minimum requirement.

See also