feat: implement authentication register finish endpoint

This commit is contained in:
Prad Nukala
2024-10-23 09:52:07 -04:00
parent 2479bae12e
commit 7cbc9e0bb1
4 changed files with 30 additions and 21 deletions
@@ -11,6 +11,7 @@ import (
// │ DWN Routes - Authentication │
// ╰───────────────────────────────────────────────────────────╯
// CurrentViewRoute returns the current view route.
func CurrentViewRoute(c echo.Context) error {
s, err := ctx.GetDWNContext(c)
if err != nil {
@@ -24,14 +25,17 @@ func CurrentViewRoute(c echo.Context) error {
// │ Hway Routes - Authentication │
// ╰───────────────────────────────────────────────────────────╯
// AuthorizeModalRoute returns the Authorize Modal route.
func AuthorizeModalRoute(c echo.Context) error {
return ctx.RenderTempl(c, AuthorizeModal(c))
}
// LoginModalRoute returns the Login Modal route.
func LoginModalRoute(c echo.Context) error {
return ctx.RenderTempl(c, LoginModal(c))
}
// RegisterModalRoute returns the Register Modal route.
func RegisterModalRoute(c echo.Context) error {
return ctx.RenderTempl(c, RegisterModal(c))
}