rename organization

This commit is contained in:
root
2020-11-28 22:43:18 +00:00
parent 185e840456
commit 002aecef90
7 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import (
"time"
uuid "github.com/hashicorp/go-uuid"
"github.com/paranoidguy/databunker/src/storage"
"github.com/securitybunker/databunker/src/storage"
"go.mongodb.org/mongo-driver/bson"
)

View File

@@ -1,3 +1,3 @@
module github.com/paranoidguy/databunker/src/storage
module github.com/securitybunker/databunker/src/storage
go 1.13

View File

@@ -6,7 +6,7 @@ import (
"net/http"
"github.com/julienschmidt/httprouter"
"github.com/paranoidguy/databunker/src/storage"
"github.com/securitybunker/databunker/src/storage"
)
func (e mainEnv) userNew(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
@@ -318,7 +318,7 @@ func (e mainEnv) userPrelogin(w http.ResponseWriter, r *http.Request, ps httprou
if userBson != nil {
userTOKEN := userBson["token"].(string)
event.Record = userTOKEN
if address == "4444" || address == "test@paranoidguy.com" {
if address == "4444" || address == "test@securitybunker.io" {
// check if it is demo account.
// the address is always 4444
// no need to send any notifications

View File

@@ -10,7 +10,7 @@ import (
jsonpatch "github.com/evanphx/json-patch"
uuid "github.com/hashicorp/go-uuid"
"github.com/paranoidguy/databunker/src/storage"
"github.com/securitybunker/databunker/src/storage"
"go.mongodb.org/mongo-driver/bson"
)

View File

@@ -6,7 +6,7 @@ import (
"time"
uuid "github.com/hashicorp/go-uuid"
"github.com/paranoidguy/databunker/src/storage"
"github.com/securitybunker/databunker/src/storage"
"go.mongodb.org/mongo-driver/bson"
)

View File

@@ -52,8 +52,8 @@ func helpCancelUserRequest(rtoken string) (map[string]interface{}, error) {
}
func TestUserLoginDelete(t *testing.T) {
email := "test@paranoidguy.com"
jsonData := `{"email":"test@paranoidguy.com","phone":"22346622","fname":"Yuli","lname":"Str","tz":"323xxxxx","password":"123456","address":"Y-d habanim 7","city":"Petah-Tiqva","btest":true,"numtest":123,"testnul":null}`
email := "test@securitybunker.io"
jsonData := `{"email":"test@securitybunker.io","phone":"22346622","fname":"Yuli","lname":"Str","tz":"323xxxxx","password":"123456","address":"Y-d habanim 7","city":"Petah-Tiqva","btest":true,"numtest":123,"testnul":null}`
raw, err := helpCreateUser(jsonData)
if err != nil {
t.Fatalf("error: %s", err)

View File

@@ -1,5 +1,5 @@
{
"$id": "https://paranoidguy.com/schema/",
"$id": "https://privacybunker.io/schema/",
"$comment" : "user record",
"title": "user",
"description": "user record",