rsuser

package
v0.0.0-...-81c28c1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Anonlog

func Anonlog(li rscore.Login, u rscore.User, r *http.Request)

Logs logins with anonymized skey

func Chadminstatus

func Chadminstatus(db *bolt.DB, op int, umax int, c *rscore.Apicall,
	tu rscore.User, w http.ResponseWriter) (bool, rscore.User)

Changes user admin status

func Chpass

func Chpass(db *bolt.DB, settings rscore.Settings, c *rscore.Apicall,
	tu rscore.User, w http.ResponseWriter) (bool, rscore.User)

Changes user password

func Getloginobj

func Getloginobj(u rscore.User) rscore.Login

Creates login object

func Isadminorme

func Isadminorme(db *bolt.DB, settings rscore.Settings, c *rscore.Apicall,
	tu rscore.User, w http.ResponseWriter) bool

Returns true if initiated by admin or operation applied to initiating user

func Rmuser

func Rmuser(db *bolt.DB, settings rscore.Settings, c *rscore.Apicall,
	tu rscore.User, w http.ResponseWriter) (bool, rscore.Settings)

Removes user account from db

func Senduser

func Senduser(u rscore.User, r *http.Request, w http.ResponseWriter,
	settings rscore.Settings)

Wrapper for sending user object to frontend

func Setpass

func Setpass(u rscore.User, pass string) (bool, rscore.User)

Sets user password

func Userv

func Userv(db *bolt.DB, w http.ResponseWriter, umax int, c *rscore.Apicall,
	alevreq int) (bool, rscore.User)

Retrieves and validates user object

func Valskey

func Valskey(db *bolt.DB, uname string, skey string,
	umax int) (bool, rscore.User)

Validates skey - returns true if user is logged in

Types

This section is empty.

Jump to

Keyboard shortcuts

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