Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Oct 22, 2024
1 parent 278671d commit 3d5cc44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ http://localhost:9000
- Les commandes pour le frontend sont dans `package.json` : `npm run watch` (dev), `npm run clean` (supprime ce qui a été installé par `npm install`), `npm run build` (bundle prod) -->


## Attribution

Le projet inclut le fichier `data/french_passwords_top20000.txt` sous licence [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) provenant du dépôt [tarraschk/richelieu](https://github.com/tarraschk/richelieu).
Le projet inclut le fichier `data/french_passwords_top20000.txt` sous licence
[Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/)
provenant du dépôt [tarraschk/richelieu](https://github.com/tarraschk/richelieu).
6 changes: 3 additions & 3 deletions app/services/PasswordService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class PasswordService @Inject() (
"used",
)

private val passwordFieldsInSelect: String =
passwordTableFields.mkString(", ")
private val qualifiedPasswordFieldsInSelect: String =
passwordTableFields.map(field => s"password.$field").mkString(", ")

private val passwordRecoveryTokenFieldsInSelect: String =
passwordRecoveryTokenTableFields.mkString(", ")
Expand Down Expand Up @@ -259,7 +259,7 @@ class PasswordService @Inject() (
"Impossible de vérifier le mot de passe",
) { implicit connection =>
SQL(
s"""SELECT $passwordFieldsInSelect
s"""SELECT $qualifiedPasswordFieldsInSelect
FROM "user", password
WHERE "user".id = password.user_id
AND email = {email}
Expand Down

0 comments on commit 3d5cc44

Please sign in to comment.