Add validation on route ChangePasswordCitizenRequest
This commit is contained in:
@@ -23,7 +23,7 @@ fun TestApplicationEngine.`Given I have citizen`(
|
||||
val user = UserForCreate(
|
||||
id = id.toUUID(),
|
||||
username = "$firstName-$lastName".toLowerCase(),
|
||||
password = "azerty",
|
||||
password = "Azerty123!",
|
||||
)
|
||||
val citizen = CitizenForCreate(
|
||||
id = id.toUUID(),
|
||||
@@ -53,7 +53,7 @@ fun createCitizen(name: CitizenI.Name? = null, id: UUID = UUID.randomUUID()): Ci
|
||||
last
|
||||
),
|
||||
email = "$first@fakeemail.com",
|
||||
user = UserForCreate(username = username, password = "azerty")
|
||||
user = UserForCreate(username = username, password = "Azerty123!")
|
||||
).let {
|
||||
citizenRepository.insertWithUser(it) ?: error("Unable to create User")
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ private fun createWorkgroup(
|
||||
.toLowerCase().replace(' ', '-')
|
||||
val user = UserForCreate(
|
||||
username = username,
|
||||
password = "azerty",
|
||||
password = "Azerty123!",
|
||||
)
|
||||
CitizenForCreate(
|
||||
name = creatorName,
|
||||
|
||||
Reference in New Issue
Block a user