You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't overwrite an already two factor secret unless force = true (#518)
* Update EnableTwoFactorAuthentication.php
Add a force parameter that only overwrites existing two factor information if it's null / has been disabled.
* Update TwoFactorAuthenticationController.php
Allow users to pass force = true to the post request to enable forcing overwriting of current secret keys.
* Update TwoFactorAuthenticationControllerTest.php
Add tests for 'force' request parameter
* Passing tests.
* StyleCI
* formatting
* formatting
---------
Co-authored-by: Taylor Otwell <[email protected]>
0 commit comments