remove PLAINTEXT_PASSWORDS option

dynamically evaluate the token field in the #AP packet. automatically treat as a plaintext password if a JWT token is not detected.
This commit is contained in:
Reese Norris
2024-10-13 08:22:33 -07:00
parent ef79a3cd91
commit 619c338ec2
4 changed files with 76 additions and 81 deletions

View File

@@ -24,9 +24,6 @@ func TestStressTest(t *testing.T) {
if err := os.Setenv("IN_MEMORY_DB", "true"); err != nil {
t.Fatal(err)
}
if err := os.Setenv("PLAINTEXT_PASSWORDS", "true"); err != nil {
t.Fatal(err)
}
// Start the server
ctx, cancelCtx := context.WithCancel(context.Background())
@@ -85,7 +82,7 @@ func TestStressTest(t *testing.T) {
ticker := time.NewTicker(200 * time.Millisecond)
defer ticker.Stop()
for i := range 100 {
for i := range 10 {
randLat := randFloats(-90, 90, 1)[0]
randLon := randFloats(-180, 180, 1)[0]