Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Mark password args as sensitive in ConfirmPassword #578

Closed
wants to merge 1 commit into from

Conversation

cosmastech
Copy link

To avoid revealing any sensitive details in a stack trace.

@@ -32,7 +32,7 @@ public function __invoke(StatefulGuard $guard, $user, ?string $password = null)
* @param string|null $password
* @return bool
*/
protected function confirmPasswordUsingCustomCallback($user, ?string $password = null)
protected function confirmPasswordUsingCustomCallback($user, #[\SensitiveParameter] ?string $password = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version requires PHP 8.1 as minimum and SensitiveParameter is available on PHP 8.2 and above.

Need to require https://github.com/symfony/polyfill-php82 if we want to merge this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks! I'll close. 🙇‍♂️

@cosmastech cosmastech closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants