Example:
string password = passwordDialog("Enter password:");
if (password !is null) {
authenticate(password);
}string passwordDialog(string message, string defaultValue = null)Shows a password input dialog.
The input is masked with dots/asterisks for security.
message | The prompt message |
defaultValue | Default input value (optional) |
Example:
string password = passwordDialog("Enter password:");
if (password !is null) {
authenticate(password);
}