From dbe687c105fcdb8982b30d09519ed694fee576c4 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Wed, 18 Sep 2024 21:50:24 +0200 Subject: [PATCH] chore(auth): add test for passwort checking #181 --- service/auth_test.go | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 service/auth_test.go diff --git a/service/auth_test.go b/service/auth_test.go new file mode 100644 index 0000000..7b62f3b --- /dev/null +++ b/service/auth_test.go @@ -0,0 +1,40 @@ +package service + +import ( + "testing" +) + +func TestValidPasswords(t *testing.T) { + passwords := []string{ + "aB!'2d2y", //normal + "v-#:j`fQurudEEUk#xA)uzI-B+'eZW3`F*5Eaf+{YID#PWuD.TbyH'f