From f24ace8b606855c8f7d40aad5a527bf2e169c82e Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 18 May 2021 07:55:51 +0200 Subject: [PATCH] change commandref add new objekt declaration --- lib/FHEM/Core/Authentication/Passwords.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/FHEM/Core/Authentication/Passwords.pm b/lib/FHEM/Core/Authentication/Passwords.pm index f6e4df4..9dbcca6 100644 --- a/lib/FHEM/Core/Authentication/Passwords.pm +++ b/lib/FHEM/Core/Authentication/Passwords.pm @@ -208,10 +208,12 @@ FHEM::Core::Authentication::Passwords->new(); =head1 SYNOPSIS use FHEM::Core::Authentication::Passwords qw(:ALL); - our $passwd = FHEM::Core::Authentication::Passwords->new(); - you can also save the password object in the instance hash - our $hash->{helper}->{passwdobj} = FHEM::Core::Authentication::Passwords->new(); + the password object in the instance hash + Define() { + ... + our $hash->{helper}->{passwdobj} = FHEM::Core::Authentication::Passwords->new($hash->{TYPE}); + ... =head1 DESCRIPTION -- 2.47.2