diff --git a/example/example.go b/example/example.go index 9bc3a0c..df31a82 100644 --- a/example/example.go +++ b/example/example.go @@ -37,7 +37,7 @@ func main() { os.Exit(1) } - scsusers.Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25") + scsusers.Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25", true) a:=scsusers.UsernameAvailable("testuser") fmt.Printf("Initial test of username available: %v\n", a) a=scsusers.Register("testuser", email, "127.0.0.1") diff --git a/main_test.go b/main_test.go index 0505248..93a313b 100644 --- a/main_test.go +++ b/main_test.go @@ -12,7 +12,6 @@ import ( func TestUsers(t *testing.T) { var email string - c.Testing = true generatePassword(16) flag.StringVar(&email, "email", "", "Email address to use for registration test") flag.Parse() @@ -38,7 +37,7 @@ func TestUsers(t *testing.T) { os.Exit(1) } - Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25") + Init(db, "test", "Example Test", "nobody@nowhere.com", "localhost:25", true) a := UsernameAvailable("testuser") fmt.Printf("Initial test of username available: %v\n", a) a = Register("testuser", email, "127.0.0.1")