mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-01 10:27:56 +00:00
rename organization
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
uuid "github.com/hashicorp/go-uuid"
|
uuid "github.com/hashicorp/go-uuid"
|
||||||
"github.com/paranoidguy/databunker/src/storage"
|
"github.com/securitybunker/databunker/src/storage"
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"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
|
go 1.13
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/julienschmidt/httprouter"
|
"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) {
|
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 {
|
if userBson != nil {
|
||||||
userTOKEN := userBson["token"].(string)
|
userTOKEN := userBson["token"].(string)
|
||||||
event.Record = userTOKEN
|
event.Record = userTOKEN
|
||||||
if address == "4444" || address == "test@paranoidguy.com" {
|
if address == "4444" || address == "test@securitybunker.io" {
|
||||||
// check if it is demo account.
|
// check if it is demo account.
|
||||||
// the address is always 4444
|
// the address is always 4444
|
||||||
// no need to send any notifications
|
// no need to send any notifications
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
jsonpatch "github.com/evanphx/json-patch"
|
jsonpatch "github.com/evanphx/json-patch"
|
||||||
uuid "github.com/hashicorp/go-uuid"
|
uuid "github.com/hashicorp/go-uuid"
|
||||||
"github.com/paranoidguy/databunker/src/storage"
|
"github.com/securitybunker/databunker/src/storage"
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
uuid "github.com/hashicorp/go-uuid"
|
uuid "github.com/hashicorp/go-uuid"
|
||||||
"github.com/paranoidguy/databunker/src/storage"
|
"github.com/securitybunker/databunker/src/storage"
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ func helpCancelUserRequest(rtoken string) (map[string]interface{}, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestUserLoginDelete(t *testing.T) {
|
func TestUserLoginDelete(t *testing.T) {
|
||||||
email := "test@paranoidguy.com"
|
email := "test@securitybunker.io"
|
||||||
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}`
|
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)
|
raw, err := helpCreateUser(jsonData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("error: %s", err)
|
t.Fatalf("error: %s", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user