Skip to content

Use SensitiveParameter class #118

@strider72

Description

@strider72

In PHP now you can mark parameters as Sensitive, which prevents them from being logged. This is good practice with things such as passwords and 2FA secrets.

I would suggest using this any time the 2FA Secret is passed to a function as a parameter, such as in TwoFactorAuth->getQRCodeImageAsDataUri()

https://www.php.net/manual/en/class.sensitiveparameter.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions