controller

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 8 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

func CreateUserAuth

func CreateUserAuth(c *gin.Context)

CreateUserAuth - POST /register

func CreateVerificationEmail added in v1.6.1

func CreateVerificationEmail(c *gin.Context)

CreateVerificationEmail issues new verification code upon request

func Deactivate2FA added in v1.6.1

func Deactivate2FA(c *gin.Context)

Deactivate2FA - disable 2FA for user account

func Login

func Login(c *gin.Context)

Login - issue new JWTs after user:pass verification

func PasswordForgot added in v1.6.1

func PasswordForgot(c *gin.Context)

PasswordForgot sends secret code for resetting a forgotten password

func PasswordRecover added in v1.6.1

func PasswordRecover(c *gin.Context)

PasswordRecover resets a forgotten password

func PasswordUpdate added in v1.6.1

func PasswordUpdate(c *gin.Context)

PasswordUpdate - change password in logged-in state

func Refresh added in v1.2.5

func Refresh(c *gin.Context)

Refresh - issue new JWTs after validation

func Setup2FA added in v1.6.1

func Setup2FA(c *gin.Context)

Setup2FA - get secret to activate 2FA possible for accounts without 2FA-ON

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

func VerifyEmail added in v1.6.1

func VerifyEmail(c *gin.Context)

VerifyEmail - verify email address

Types

This section is empty.

Jump to

Keyboard shortcuts

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