Compare commits

..

No commits in common. "2874f579dcf546bb42d2c40937a08a1fc465e0c2" and "66f82ecc13445511322c51cf3f3cb77669623487" have entirely different histories.

3 changed files with 2 additions and 12 deletions

View file

@ -9,7 +9,7 @@ services:
environment:
- MARIADB_ROOT_PASSWORD=root
steps:
pipeline:
db_wait:
image: gitnet.fr/deblan/timeout:latest
commands:
@ -21,7 +21,7 @@ steps:
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
config:
image: deblan/php:${PHP_VERSION}
image: deblan/php:8.1
commands:
- echo APP_ENV=prod >> .env.local
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local

View file

@ -1,13 +1,5 @@
## [Unreleased]
## [v1.22.0] 2023-09-28
### Added
* update woodpecker ci base file
### Fixed
* fix #1: add UniqueEntity constraint in the User entity
### Changed
* upgrade murph/murph-core
## [1.21.0] 2023-08-11
### Changed
* upgrade murph/murph-core

View file

@ -9,11 +9,9 @@ use Doctrine\ORM\Mapping as ORM;
use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
#[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\HasLifecycleCallbacks]
#[UniqueEntity('email')]
class User implements PasswordAuthenticatedUserInterface, UserInterface, TwoFactorInterface, EntityInterface
{
use Timestampable;