Page 1 of 1

Password parameters for plugins

Posted: Sunday 06 May 2018 13:00
by Dnpwwo
Changed pushed today to allow plugin developers to use password style parameters in the Hardware page via a new password attribute for the param tag.

For example:

Code: Select all

<plugin key="EnvisaLink" name="DSC Alarm via EnvisaLink" author="dnpwwo" version="1.2.3" wikilink="https://github.com/dnpwwo/Domoticz-DSCEnvisalink-Plugin" externallink="http://www.eyezon.com/?page_id=176">
    <params>
        <param field="Address" label="IP Address" width="200px" required="true" default="127.0.0.1"/>
        <param field="Port" label="Port" width="30px" required="true" default="4025"/>
        <param field="Password" label="Password" width="200px" required="true" default="" password="true"/>
     </params>
 </plugin>
If you have parameters that you don't want everyone to be able to read give it a try :!:

BTW: Backwards compatible. Attribute will just be ignored on older versions of Domoticz. 8-)

Re: Password parameters for plugins

Posted: Wednesday 09 May 2018 11:43
by EscApe
Thanks Dnpwwo!

I have adapted the presence detection plugin to use the password field option and it works fine. Two things for other use to be aware of:
- Make sure you delete the browser cache if the field is still showing the password instead of ****
- Be aware that passwords will still be stored in plain text in the database.