tableProhibitedPasswords.go (251B)
1 package database 2 3 type ProhibitedPassword struct { 4 Password string 5 } 6 7 func (d *DkfDB) IsPasswordProhibited(password string) bool { 8 var count int64 9 d.db.Table("prohibited_passwords").Where("password = ?", password).Count(&count) 10 return count > 0 11 }