Skip to content

Commit

Permalink
fixed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyskills committed Jan 20, 2023
1 parent 7164e03 commit eea7398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Resettable.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function forcePasswordReset(): bool

// Set force_reset to true
$identity_model = model(UserIdentityModel::class);
$identity_model->set('force_reset', true);
$identity_model->set('force_reset', 1);
$identity_model->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);

return $identity_model->update();
Expand All @@ -55,7 +55,7 @@ public function undoForcePasswordReset(): bool

// Set force_reset to false
$identity_model = model(UserIdentityModel::class);
$identity_model->set('force_reset', false);
$identity_model->set('force_reset', 0);
$identity_model->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);

return $identity_model->update();
Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/ForcePasswordResetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class ForcePasswordResetTest extends TestCase

protected $refresh = true;
protected $namespace;
protected $routeFilter = 'force-reset';
private string $routeFilter = 'force-reset';

protected function setUp(): void
{
Expand Down

0 comments on commit eea7398

Please sign in to comment.