chomnr / brute

Brute an application that monitors authentication attempts on your server that uses OpenSSH or any protocol. May not be practical, but it is cool.
https://brute.exposed/
MIT License
18 stars 5 forks source link

null value in column "postal" violates not-null constraint #1

Closed chomnr closed 1 month ago

chomnr commented 1 month ago

need to assign a default value inside top_postal.sql whenever a postal is null

chomnr commented 1 month ago

method one: You would need to go into migrations/top_postal.sql change postal VARCHAR(255) PRIMARY KEY to postal VARCHAR(255) PRIMARY KEY DEFAULT ''

method two: go inside system.rs and find impl Reportable<BruteReporter, ProcessedIndividual> for TopPostal and check if the postal is empty if it is don't execute the query if it isn't let it execute.