models

package
v0.0.0-...-ada41f3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id           int64
	Created      int64
	Username     string
	PasswordHash string
	PasswordSalt string
}

User model in the DB

func (*User) ComparePassword

func (user *User) ComparePassword(password string) bool

ComparePassword compares the password with the user's hash and salt

func (*User) SetPassword

func (user *User) SetPassword(password string)

SetPassword sets the password hash and salt on a user

Jump to

Keyboard shortcuts

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