jcs:get-secret() Function
Syntax
var $user-input = jcs:get-secret(string);
Description
Invoke a CLI prompt and wait for user input. Unlike the jcs:get-input() function, the input is not echoed back to the user, which makes the function useful for obtaining passwords. The user input is defined as a string for subsequent use. This function cannot be used with event scripts.
Parameters
- string—CLI prompt text.
Return Value
- $user-input—Text typed by the user and stored as a string.
The following example shows how to prompt for a password that is not echoed back to the user:
var $password = jcs:get-secret("Enter password: ");
Hide Navigation Pane
Show Navigation Pane
Download
SHA1