only looking for type key when querying keyname
This commit is contained in:
parent
320666a131
commit
9f5569c518
2
honk.go
2
honk.go
|
@ -75,7 +75,7 @@ func ziggy(user *WhatAbout) (keyname string, key *rsa.PrivateKey) {
|
|||
|
||||
func zaggy(keyname string) (key *rsa.PublicKey) {
|
||||
db := opendatabase()
|
||||
row := db.QueryRow("select pubkey from honkers where xid = ?", keyname)
|
||||
row := db.QueryRow("select pubkey from honkers where flavor = 'key' and xid = ?", keyname)
|
||||
var data string
|
||||
err := row.Scan(&data)
|
||||
savekey := false
|
||||
|
|
Loading…
Reference in New Issue