controller

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 11 Imported by: 2

Documentation

Overview

Package controller contains all the controllers of the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate2FA added in v1.6.1

func Activate2FA(c *gin.Context)

Activate2FA - activate 2FA upon validation possible for accounts without 2FA-ON dependency: relational database, JWT, 2FA service

func CreateUserAuth

func CreateUserAuth(c *gin.Context)

CreateUserAuth - POST /register dependency: relational database

func CreateVerificationEmail added in v1.6.1

func CreateVerificationEmail(c *gin.Context)

CreateVerificationEmail issues new verification code upon request dependency: email service, email verification service, Redis

func Deactivate2FA added in v1.6.1

func Deactivate2FA(c *gin.Context)

Deactivate2FA - disable 2FA for user account dependency: relational database, JWT, 2FA service

func Login

func Login(c *gin.Context)

Login - issue new JWTs after user:pass verification dependency: relational database, JWT

func Logout added in v1.6.9

func Logout(c *gin.Context)

Logout - if 'AUTH_COOKIE_ACTIVATE=yes', ddelete tokens from client browser if Redis is enabled, save invalid tokens in Redis up until the expiry time dependency: JWT

func PasswordForgot added in v1.6.1

func PasswordForgot(c *gin.Context)

PasswordForgot sends secret code for resetting a forgotten password dependency: relational database, Redis, email service

func PasswordRecover added in v1.6.1

func PasswordRecover(c *gin.Context)

PasswordRecover resets a forgotten password dependency: relational database, Redis

func PasswordUpdate added in v1.6.1

func PasswordUpdate(c *gin.Context)

PasswordUpdate - change password in logged-in state dependency: relational database, JWT

func Refresh added in v1.2.5

func Refresh(c *gin.Context)

Refresh - issue new JWTs after validation dependency: JWT

func Setup2FA added in v1.6.1

func Setup2FA(c *gin.Context)

Setup2FA - get secret to activate 2FA possible for accounts without 2FA-ON dependency: relational database, JWT, 2FA service

func Validate2FA added in v1.6.1

func Validate2FA(c *gin.Context)

Validate2FA - issue new JWTs upon 2FA validation required for accounts with 2FA-ON dependency: relational database, JWT, 2FA service

func VerifyEmail added in v1.6.1

func VerifyEmail(c *gin.Context)

VerifyEmail - verify email address dependency: email verification service, Redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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