adduser

package
v0.0.0-...-6995f34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(username string, rawPassword []byte) (newId string, err error)

AddUser creates a new database user, hashes the user's password, and stores it in the database. Assumes existence of the relevant global variable.

func HashMd5Password

func HashMd5Password(username string, rawPassword []byte) string

HashMd5Password hashes a password using a username as a salt to produce an md5 password string in accordance with the PostgreSQL spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL