loginController

package
v0.0.0-...-659eabc Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package loginController contains all functions regarding user authentication and registration. NOTE : this is a part of a set of user controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectedUsers

func GetConnectedUsers() (int64, error)

GetConnectedUsers get the number of connected users.

func GetUserIDFromSessionToken

func GetUserIDFromSessionToken(token string) (int64, error)

GetUserIDFromSessionToken gets the user ID from session token.

Returns error if not found in cache.

func HandleAuth

func HandleAuth(context echo.Context) error

HandleAuth handles the authentication of the user for the system.

func HandleRegistration

func HandleRegistration(context echo.Context) error

HandleRegistration handles the registration of a user for the system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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