Using master pg library
This commit is contained in:
parent
d9a95a997c
commit
e0854aa001
8 changed files with 43 additions and 76 deletions
|
@ -46,7 +46,7 @@ func (db *pgDB) addRawUser(name string, hpass []byte, salt []byte, role string)
|
|||
Salt: salt,
|
||||
Role: role,
|
||||
}
|
||||
return db.sql.Create(&u)
|
||||
return db.sql.Insert(&u)
|
||||
}
|
||||
|
||||
func (db *pgDB) GetRole(name string) (string, error) {
|
||||
|
|
Reference in a new issue