Replace `\wcf\SensitiveArgument` by `\SensitiveParameter`
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 10:08:13 +0000 (12:08 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 10:09:09 +0000 (12:09 +0200)
wcfsetup/install/files/lib/data/user/User.class.php
wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php

index 8e306574f0a46bbb155bac75d39f198e60914fed..97c8227651133744972cefb7cbc81cb6a835fbb5 100644 (file)
@@ -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;
index c14878ea9289736cd4614c961eebc8b93bc8943b..ad0242b2aa3ea895847201ee14922a9150f7db0b 100644 (file)
@@ -36,7 +36,7 @@ class DefaultUserAuthentication extends AbstractUserAuthentication
      */
     public function loginManually(
         $username,
-        #[\wcf\SensitiveArgument()]
+        #[\SensitiveParameter]
         $password,
         $userClassname = User::class
     ) {