# Functions
EmailPage endpoint displays the users email
and adds a possibility to update the email.
GetUserSettings gets all of the user settings from
the database based on the username.
PasswordPage endpoint is a page with
an empty form for updating the username.
UpdateEmail endpoint parses the data from the form page
and updates the email in the database.
UpdatePassword parses the password form and
insert the new password in the database, hashed.
UpdateUserEmail updates the users email
in the database based on the username.
UpdateUserPassword takes the raw password string
and hashes it with BCrypt and inserts the new password
into the database.
UserPage endpoint returns the private profile
page or general settings page for the user.
# Structs
PageData struct is used for the
data being rendered and should
not be used in other structs.
UserPageData stored all of the
data connected to the user for the
profile and setting pages.