models

package
v0.0.0-...-3beece8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatedUser

type AuthenticatedUser struct {
	// Token           *jwt.Token
	Username        string
	AuthTime        float64
	TokenExpireTime float64
	TokenUse        string
	Level           string
	ClientAppID     string
	UUID            string
	IsTokenValid    bool
}

type User

type User struct {
	// gorm.Model
	Username       string //`json:"username"`
	Email          string //`json:"email"`
	Password       string //`json:"password"`
	Phone          string //`json:"phone"`
	UserAttributes []*cogIdp.AttributeType
}

User represents user object

func (*User) Sanitize

func (u *User) Sanitize()

Sanitize removes sensitive field value

Jump to

Keyboard shortcuts

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