diff --git a/src/main/kotlin/service/PatronService.kt b/src/main/kotlin/service/PatronService.kt index 3ad3c60..befa10f 100644 --- a/src/main/kotlin/service/PatronService.kt +++ b/src/main/kotlin/service/PatronService.kt @@ -80,7 +80,7 @@ class PatronService(private val connection: Connection) { statement.setString(1, username) val resultSet = statement.executeQuery() return if (resultSet.next()) { - resultSet.getString("password") == password + resultSet.getString("password") == password && !resultSet.getBoolean("is_archived") } else { throw SQLException() }