mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 14:47:00 +00:00
FB_CALLMONITOR: add DeleteFn for password deletion (Forum: #79617)
git-svn-id: https://svn.fhem.de/fhem/trunk@15442 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a341953edc
commit
e652050c02
@ -1,5 +1,7 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- change: 72_FB_CALLMONITOR: delete stored FRITZ!Box password in
|
||||
FHEM/uniqueID file upon deletion of a FB_CALLMONITOR definition
|
||||
- feature: TR064Utils.pm added
|
||||
- changed: 88_HMCCU: Improved attributes ccureadingfilter, stripnumber
|
||||
- feature: 89_FULLY: New commands for motion detection and brightness
|
||||
|
@ -51,6 +51,7 @@ FB_CALLMONITOR_Initialize($)
|
||||
$hash->{SetFn} = "FB_CALLMONITOR_Set";
|
||||
$hash->{DefFn} = "FB_CALLMONITOR_Define";
|
||||
$hash->{RenameFn} = "FB_CALLMONITOR_Rename";
|
||||
$hash->{DeleteFn} = "FB_CALLMONITOR_Delete";
|
||||
$hash->{UndefFn} = "FB_CALLMONITOR_Undef";
|
||||
$hash->{AttrFn} = "FB_CALLMONITOR_Attr";
|
||||
$hash->{NotifyFn} = "FB_CALLMONITOR_Notify";
|
||||
@ -117,6 +118,20 @@ FB_CALLMONITOR_Undef($$)
|
||||
return undef;
|
||||
}
|
||||
|
||||
#####################################
|
||||
# If Device is deleted, delete the password dataIf Device is renamed, copy the password data
|
||||
sub
|
||||
FB_CALLMONITOR_Delete($$)
|
||||
{
|
||||
my ($hash, $name) = @_;
|
||||
|
||||
my $index = "FB_CALLMONITOR_".$name."_passwd";
|
||||
|
||||
setKeyValue($index, undef);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
#####################################
|
||||
# If Device is renamed, copy the password data
|
||||
sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user