From ef0cb2907482729f740b056b8ef3e5cd6607f867 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 13 May 2022 12:08:13 +0200 Subject: [PATCH] Replace `\wcf\SensitiveArgument` by `\SensitiveParameter` --- wcfsetup/install/files/lib/data/user/User.class.php | 2 +- .../user/authentication/DefaultUserAuthentication.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index 8e306574f0..97c8227651 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -154,7 +154,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * @return bool password correct */ public function checkPassword( - #[\wcf\SensitiveArgument()] + #[\SensitiveParameter] $password ) { $isValid = false; diff --git a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php index c14878ea92..ad0242b2aa 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php @@ -36,7 +36,7 @@ class DefaultUserAuthentication extends AbstractUserAuthentication */ public function loginManually( $username, - #[\wcf\SensitiveArgument()] + #[\SensitiveParameter] $password, $userClassname = User::class ) { -- 2.20.1