Skip to content

Commit

Permalink
DOC Update extension hook examples to be protected
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 21, 2024
1 parent 9825ca3 commit d262b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ use SilverStripe\Security\Member;
class MyTOTPRegisterHandlerExtension extends Extension
{
public function updateTotp(TOTPInterface $totp, Member $member)
protected function updateTotp(TOTPInterface $totp, Member $member)
{
$totp->setLabel($member->getCustomTOTPLabel());
$totp->setIssuer('My web project');
Expand Down

0 comments on commit d262b33

Please sign in to comment.