authentication

package
v0.0.0-...-c4064b3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignIn

func SignIn(usernameOrEmail, password string) (*models.User, error)

SignIn signs in the user with username or email

func SignUp

func SignUp(username, email, password string) error

SignUp signs up the user

func UpdateEmail

func UpdateEmail(userId, password, newEmail string) error

UpdateEmail updates the email of the user

func UpdatePassword

func UpdatePassword(userId, username, oldPassword, newPassword string) error

UpdatePassword updates the password of the user

Types

This section is empty.

Jump to

Keyboard shortcuts

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