helpers

package
v0.0.0-...-30e327d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPasswordResetToken

func AddPasswordResetToken(dbMap *gorp.DbMap, email string) (*models.User, error)

func EmailChangeComplete

func EmailChangeComplete(dbMap *gorp.DbMap, token string) error

func EmailChangeTokenExists

func EmailChangeTokenExists(dbMap *gorp.DbMap, token string) (*models.EmailChange, error)

func EmailExists

func EmailExists(dbMap *gorp.DbMap, email string) (*models.User, error)

func EmailVerificationComplete

func EmailVerificationComplete(dbMap *gorp.DbMap, token string) error

func EmailVerificationTokenExists

func EmailVerificationTokenExists(dbMap *gorp.DbMap, token string) (*models.User, error)

func Login

func Login(dbMap *gorp.DbMap, email string, password string) (*models.User, error)

func Parse

func Parse(t *template.Template, name string, data interface{}) string

func PasswordResetTokenDelete

func PasswordResetTokenDelete(dbMap *gorp.DbMap, token string) error

func PasswordResetTokenExists

func PasswordResetTokenExists(dbMap *gorp.DbMap, token string) (*models.PasswordReset, error)

func PasswordValidById

func PasswordValidById(dbMap *gorp.DbMap, id int64, password string) (*models.User, error)

func UpdateUserPasswordById

func UpdateUserPasswordById(dbMap *gorp.DbMap, id int64, password []byte) (*models.User, error)

func UserIDExists

func UserIDExists(dbMap *gorp.DbMap, userid int64) (*models.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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