Added check for archived patron

This commit is contained in:
2025-08-17 16:34:46 -04:00
parent 31195f678f
commit 7fa7cee70e

View File

@@ -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()
}