diff --git a/controls_authenticationPassword.txt b/controls_authenticationPassword.txt new file mode 100644 index 0000000..5d103c6 --- /dev/null +++ b/controls_authenticationPassword.txt @@ -0,0 +1 @@ +UPD 2021-04-22_08:40:31 5929 lib/FHEM/Core/Authentication/Passwords.pm diff --git a/controls_passwordUtils.txt b/controls_passwordUtils.txt deleted file mode 100644 index b290767..0000000 --- a/controls_passwordUtils.txt +++ /dev/null @@ -1 +0,0 @@ -UPD 2021-04-20_19:18:02 4627 lib/FHEM/Core/Password/Utils.pm diff --git a/hooks/pre-commit b/hooks/pre-commit index 18a89d0..544464c 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,9 +4,9 @@ use File::Basename; use POSIX qw(strftime); use strict; -my @filenames = ('lib/FHEM/Core/Password/Utils.pm'); +my @filenames = ('lib/FHEM/Core/Authentication/Passwords.pm'); -my $controlsfile = 'controls_passwordUtils.txt'; +my $controlsfile = 'controls_authenticationPassword.txt'; open(FH, ">$controlsfile") || return("Can't open $controlsfile: $!"); diff --git a/lib/FHEM/Core/Authentication/Passwords.pm b/lib/FHEM/Core/Authentication/Passwords.pm index e2d3cd3..1c21458 100644 --- a/lib/FHEM/Core/Authentication/Passwords.pm +++ b/lib/FHEM/Core/Authentication/Passwords.pm @@ -213,13 +213,16 @@ FHEM::Core::Authentication::Passwords->new(); =head1 DESCRIPTION Store new Password -$hash->{helper}->{passwdobj}->setStorePassword('PASSWORD'); +$hash->{helper}->{passwdobj}->setStorePassword($name,'PASSWORD'); Read Password -$hash->{helper}->{passwdobj}->getReadPassword(); - +$hash->{helper}->{passwdobj}->getReadPassword($name); +Delete Password +$hash->{helper}->{passwdobj}->setDeletePassword($name); +Rename Password +$hash->{helper}->{passwdobj}->getRename($newname,$oldname); =head1 EXPORT