Patch portunus to allow dots in usernames #45
|
@ -1,6 +1,6 @@
|
||||||
From a3fb0c82f09db0b5655c949d5e4dbea55279ff10 Mon Sep 17 00:00:00 2001
|
From f5c68898be345fb0dca5ab7b596b9cbe674f5dfb Mon Sep 17 00:00:00 2001
|
||||||
From: Rouven Seifert <rouven@rfive.de>
|
From: Rouven Seifert <rouven@rfive.de>
|
||||||
Date: Tue, 4 Jul 2023 15:02:02 +0200
|
Date: Tue, 4 Jul 2023 15:14:00 +0200
|
||||||
Subject: [PATCH] update user validation regex
|
Subject: [PATCH] update user validation regex
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -8,13 +8,13 @@ Subject: [PATCH] update user validation regex
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/internal/core/validation.go b/internal/core/validation.go
|
diff --git a/internal/core/validation.go b/internal/core/validation.go
|
||||||
index 3be9dfa..b1368a7 100644
|
index 3e168b5..10dfc0a 100644
|
||||||
--- a/internal/core/validation.go
|
--- a/internal/core/validation.go
|
||||||
+++ b/internal/core/validation.go
|
+++ b/internal/core/validation.go
|
||||||
@@ -30,7 +30,7 @@ import (
|
@@ -30,7 +30,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// this regexp copied from useradd(8) manpage
|
//this regexp copied from useradd(8) manpage
|
||||||
-const posixAccountNamePattern = `[a-z_][a-z0-9_-]*\$?`
|
-const posixAccountNamePattern = `[a-z_][a-z0-9_-]*\$?`
|
||||||
+const posixAccountNamePattern = `[a-z_][a-z0-9._-]*\$?`
|
+const posixAccountNamePattern = `[a-z_][a-z0-9._-]*\$?`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue