Skip to content

Commit fa2bca3

Browse files
committed
Changed the scope of createIdentity() method so it can be used by child classes
1 parent 44e65ef commit fa2bca3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Authentication/Actions/Email2FA.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function afterLogin(User $user): void
115115
$this->createIdentity($user);
116116
}
117117

118-
private function createIdentity(User $user): void
118+
protected function createIdentity(User $user): void
119119
{
120120
/** @var UserIdentityModel $identityModel */
121121
$identityModel = model(UserIdentityModel::class);

src/Authentication/Actions/EmailActivator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function afterRegister(User $user): void
101101
$this->createIdentity($user);
102102
}
103103

104-
private function createIdentity(User $user): string
104+
protected function createIdentity(User $user): string
105105
{
106106
/** @var UserIdentityModel $identityModel */
107107
$identityModel = model(UserIdentityModel::class);

0 commit comments

Comments
 (0)