Skip to content

Commit

Permalink
Add sensitive data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed May 30, 2024
1 parent d68e90a commit c51bc90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Auth/Process/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,11 @@ public function process(array &$state): void
* @throws \InvalidArgumentException if the state array is not in a valid stage or the given OTP has incorrect
* length.
*/
public static function authenticate(array &$state, string $otp): bool
{
public static function authenticate(
array &$state,
#[\SensitiveParameter]
string $otp,
): bool {
// validate the state array we're given
if (
!array_key_exists(Auth\State::STAGE, $state) ||
Expand Down

0 comments on commit c51bc90

Please sign in to comment.