Opened 9 years ago

Closed 9 years ago

#1959 closed enhancement (fixed)

Add support for password-type parameters to plug-ins

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 3.7
Component: core Version:
Keywords: Cc:

Description

It would be useful if the plug-in configuration dialog would allow masked input fields (eg. for passwords).

The value should be stored in the database as usual but a flag should be set so that client applications can detect this and display a mask instead of the real value.

Change History (2)

comment:1 by Nicklas Nordborg, 9 years ago

(In [6987]) References #1959: Add support for password-type parameters to plug-ins

Added PasswordParameterType class which creates a <input type="password"> input field in the gui.

comment:2 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed

(In [6988]) Fixes #1959: Add support for password-type parameters to plug-ins

This information is now stored in the database using the ParameterValueData class. The masked flag can be checked by calling Job.getParameterInfo() and then use ParameterInfo.getValuesOrMask() when the parameter values are used for display.

The changes do no affect any other methods so even masked values should be available as before in places which use the values for other things than display purposes.

Note: See TracTickets for help on using tickets.