Skip to content

Commit

Permalink
feat: upgrade 2fa packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3000mp committed Aug 28, 2024
1 parent e3370ae commit 4dcf902
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions backend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-ctype": "*",
"ext-gd": "*",
"ext-iconv": "*",
Expand All @@ -19,8 +19,8 @@
"nelmio/cors-bundle": "^2.3",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.24",
"scheb/2fa-bundle": "^7.0",
"scheb/2fa-totp": "^7.0",
"scheb/2fa-bundle": "^7.5",
"scheb/2fa-totp": "^7.5",
"symfony/asset": "6.4.*",
"symfony/console": "6.4.*",
"symfony/doctrine-messenger": "6.4.*",
Expand Down
28 changes: 14 additions & 14 deletions backend/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/src/Entity/Cost.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Cost

#[ORM\Column]
#[Groups(['cost_list', 'cost_write'])]
#[Assert\GreaterThan(0)]
#[Assert\GreaterThanOrEqual(0)]
private float $amount;

#[ORM\ManyToOne(targetEntity: CostType::class)]
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ public function getTotpAuthenticationUsername(): string

public function getTotpAuthenticationConfiguration(): ?TotpConfigurationInterface
{
return new TotpConfiguration($this->totpSecret, TotpConfiguration::ALGORITHM_SHA1, 20, 8);
return new TotpConfiguration($this->totpSecret, TotpConfiguration::ALGORITHM_SHA1, 20, 6);
}
}
2 changes: 1 addition & 1 deletion deployment/ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# - files
# - docker
- deploy_back
- deploy_front
# - deploy_front
# - apache
# - backup
# - launch

0 comments on commit 4dcf902

Please sign in to comment.