account

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(DB db.Database) func(ctx *gin.Context)

ChangePassword is a closure for PUT /account/password_change It differs from ResetPassword because the user must be logged in.

func CompleteSignup added in v1.5.5

func CompleteSignup(DB db.Database) func(g *gin.Context)

CompleteSignup is a closure for the POST /account/create endpoint

func Delete

func Delete(DB db.Database) func(ctx *gin.Context)

Delete is a closure for the DELETE /account endpoint

func GetMajors

func GetMajors(DB db.Database) func(ctx *gin.Context)

GetMajors is a closure for the GET /account/profile/majors endpoint

func GetTranscriptYears

func GetTranscriptYears(DB db.Database) func(ctx *gin.Context)

GetTranscriptYears is a closure for the GET /account/profile/transcript/years endpoint

It retrieves the last years the user has been in USP

func Login

func Login(DB db.Database) func(ctx *gin.Context)

Login is a closure for the POST /account/login endpoint

func Logout

func Logout() func(ctx *gin.Context)

Logout is a closure for the GET /account/logout endpoint

func PreSignup added in v1.5.5

func PreSignup(DB db.Database) func(g *gin.Context)

PreSignup is a closure for the PUT /account/auth endpoint

func Profile

func Profile(DB db.Database) func(ctx *gin.Context)

Profile is a closure for the GET /account/profile endpoint

func RequestPasswordReset

func RequestPasswordReset(DB db.Database) func(g *gin.Context)

RequestPasswordReset is a closure for the POST /account/email/password_reset endpoint

func ResetPassword

func ResetPassword(DB db.Database) func(ctx *gin.Context)

ResetPassword is a closure for PUT /account/password_reset It differs from ChangePassword because the user does not have to be logged in.

func SearchCurriculum

func SearchCurriculum(DB db.Database) func(ctx *gin.Context)

SearchCurriculum is a closure for the GET /account/profile/curriculum endpoint

It takes an optional query parameter called "optional", which enforces that queried subjects are not obligatory

func SearchTranscript

func SearchTranscript(DB db.Database) func(ctx *gin.Context)

SearchTranscript is a closure for the GET /account/profile/transcript endpoint

It looks up into the user's transcript and returns the subjects they took in a given year and semester, along with their grades data

func Update

func Update(DB db.Database) func(ctx *gin.Context)

Update is a closure for the PUT /account/update endpoint

func VerifyAccount

func VerifyAccount(DB db.Database) func(g *gin.Context)

VerifyAccount is a closure for the GET /account/verify endpoint

func VerifyEmail

func VerifyEmail(DB db.Database) func(g *gin.Context)

VerifyEmail is a closure for the POST /account/email/verification endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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