Documentation ¶
Index ¶
- Variables
- func ChangePassword(email, oldPassword, newPassword string) (err error)
- func ChangeUsername(email string, newUsername, password string) (err error)
- func CheckRegisterLink(code, email, date string) bool
- func CheckResetLink(code, email, date string) bool
- func CreatePage(userID int, title, description, address, website string, category int) (categorySlug, pageSlug string, err error)
- func CreatePost(user_id int, post string, page common.Page) (err error)
- func GenerateResetCode(email string) (hash string, date string, err error)
- func GetCommunityColumns(userid int) ([][]common.Community, error)
- func GetEmail(sessionid string) (string, error)
- func GetPage(categorySlug, pageSlug string) (page common.Page, err error)
- func GetPages() ([]common.Page, error)
- func GetPosts(userid int, page common.Page) (posts []common.Post, err error)
- func GetTopPages() (pages []common.PagePostCount, err error)
- func GetUserInfo(sessionid string) (common.UserInfo, error)
- func GetUsername(sessionid string) (string, error)
- func ListCategories() (map[string]string, error)
- func Login(email, password string) (sessionid string, err error)
- func Logout(sessionid string) error
- func LogoutOtherSessions(sessionid string, userid int) (loggedOut int, err error)
- func OtherSessions(userid int) (num int, err error)
- func PasswordChangeRequired(sessionid string) (bool, error)
- func Register1(email, baseURL string) (err error)
- func Register2(username, email, password string) (sessionid string, err error)
- func ResetPassword(email, baseURL string) error
- func SearchPages(sessionid, query string) ([]common.Page, error)
- func SetCommunityMembership(userid int, community_id int, value bool) (err error)
- func SetPassword(email, newPassword string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailFailed = errors.New("Sending email failed.")
View Source
var IncorrectPassword = errors.New("Incorrect password.")
View Source
var PasswordTooShort = errors.New(fmt.Sprintf("The supplied password is too short. Minimum password length is %d characters.", minPasswordLength))
Errors
View Source
var ShortPassword = errors.New("Password too short.")
View Source
var UsernameTooLong = errors.New(fmt.Sprintf("The supplied username is too long. Maximum username length is %d characters.", maxUsernameLength))
View Source
var UsernameTooShort = errors.New(fmt.Sprintf("The supplied username is too short. Minimum username length is %d characters.", minUsernameLength))
Functions ¶
func ChangePassword ¶
func ChangeUsername ¶
func CheckRegisterLink ¶
func CheckResetLink ¶
func CreatePage ¶
func GetTopPages ¶
func GetTopPages() (pages []common.PagePostCount, err error)
func GetUsername ¶
func ListCategories ¶
func LogoutOtherSessions ¶
func OtherSessions ¶
func PasswordChangeRequired ¶
func ResetPassword ¶
func SetCommunityMembership ¶
func SetPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.