mirror of
				https://github.com/optim-enterprises-bv/databunker.git
				synced 2025-10-31 09:57:46 +00:00 
			
		
		
		
	rename organization
This commit is contained in:
		| @@ -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" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,3 @@ | ||||
| module github.com/paranoidguy/databunker/src/storage | ||||
| module github.com/securitybunker/databunker/src/storage | ||||
|  | ||||
| go 1.13 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -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" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 root
					root