1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-07-03 00:58:13 +02:00

comment out invite accept auth

This commit is contained in:
Lee Brown
2019-08-05 13:33:18 -08:00
parent 76d5828a74
commit 9fbab53b4c

View File

@ -3,14 +3,6 @@ package handlers
import ( import (
"context" "context"
"fmt" "fmt"
"geeks-accelerator/oss/saas-starter-kit/internal/account"
"geeks-accelerator/oss/saas-starter-kit/internal/user_auth"
"net/http"
"strings"
"time"
"geeks-accelerator/oss/saas-starter-kit/internal/user_account/invite"
"github.com/dustin/go-humanize/english"
"geeks-accelerator/oss/saas-starter-kit/internal/geonames" "geeks-accelerator/oss/saas-starter-kit/internal/geonames"
"geeks-accelerator/oss/saas-starter-kit/internal/platform/auth" "geeks-accelerator/oss/saas-starter-kit/internal/platform/auth"
"geeks-accelerator/oss/saas-starter-kit/internal/platform/datatable" "geeks-accelerator/oss/saas-starter-kit/internal/platform/datatable"
@ -21,10 +13,14 @@ import (
project_routes "geeks-accelerator/oss/saas-starter-kit/internal/project-routes" project_routes "geeks-accelerator/oss/saas-starter-kit/internal/project-routes"
"geeks-accelerator/oss/saas-starter-kit/internal/user" "geeks-accelerator/oss/saas-starter-kit/internal/user"
"geeks-accelerator/oss/saas-starter-kit/internal/user_account" "geeks-accelerator/oss/saas-starter-kit/internal/user_account"
"geeks-accelerator/oss/saas-starter-kit/internal/user_account/invite"
"github.com/dustin/go-humanize/english"
"github.com/gorilla/schema" "github.com/gorilla/schema"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/pkg/errors" "github.com/pkg/errors"
"gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis" "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-redis/redis"
"net/http"
"strings"
) )
// Users represents the Users API method handler set. // Users represents the Users API method handler set.
@ -633,6 +629,7 @@ func (h *Users) InviteAccept(ctx context.Context, w http.ResponseWriter, r *http
} }
} }
/*
// Authenticated the user. Probably should use the default session TTL from UserLogin. // Authenticated the user. Probably should use the default session TTL from UserLogin.
token, err := user_auth.Authenticate(ctx, h.MasterDB, h.Authenticator, u.Email, req.Password, time.Hour, ctxValues.Now) token, err := user_auth.Authenticate(ctx, h.MasterDB, h.Authenticator, u.Email, req.Password, time.Hour, ctxValues.Now)
if err != nil { if err != nil {
@ -654,6 +651,8 @@ func (h *Users) InviteAccept(ctx context.Context, w http.ResponseWriter, r *http
if err != nil { if err != nil {
return false, err return false, err
} }
*/
// Redirect the user to the dashboard. // Redirect the user to the dashboard.
http.Redirect(w, r, "/", http.StatusFound) http.Redirect(w, r, "/", http.StatusFound)