go-bouquins/bouquins/dbusers.go
2017-09-09 17:13:47 +02:00

12 lines
299 B
Go

package bouquins
// Account returns user account from authentifier
func Account(authentifier string) (*UserAccount, error) {
account := new(UserAccount)
err := stmtAccount.QueryRow(authentifier).Scan(&account.ID, &account.DisplayName)
if err != nil {
return nil, err
}
return account, nil
}