Password parameters for plugins

Python and python framework

Moderator: leecollings

Post Reply
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Password parameters for plugins

Post 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-)
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
EscApe
Posts: 535
Joined: Thursday 02 April 2015 8:46
Target OS: Linux
Domoticz version: 2020+
Location: The Netherlands
Contact:

Re: Password parameters for plugins

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest