Exemplo n.º 1
0
// Logout will clear out the session and call the Logout() account function.
func Logout(s session.Store, account Account) {
	account.Logout()
	s.Delete(AUTH_UNIQUE_ID)
}
Exemplo n.º 2
0
// UpdateUser updates the Account object stored in the session. This is useful incase a change
// is made to the account model that needs to persist across requests.
func Update(s session.Store, account Account) error {
	s.Set(AUTH_UNIQUE_ID, account.UniqueId())
	return nil
}