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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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