2023-07-04 15:15:58 +02:00
|
|
|
From f5c68898be345fb0dca5ab7b596b9cbe674f5dfb Mon Sep 17 00:00:00 2001
|
2023-07-04 15:10:00 +02:00
|
|
|
From: Rouven Seifert <rouven@rfive.de>
|
2023-07-04 15:15:58 +02:00
|
|
|
Date: Tue, 4 Jul 2023 15:14:00 +0200
|
2023-07-04 15:10:00 +02:00
|
|
|
Subject: [PATCH] update user validation regex
|
|
|
|
|
|
|
|
---
|
|
|
|
internal/core/validation.go | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/internal/core/validation.go b/internal/core/validation.go
|
2023-07-04 15:15:58 +02:00
|
|
|
index 3e168b5..10dfc0a 100644
|
2023-07-04 15:10:00 +02:00
|
|
|
--- a/internal/core/validation.go
|
|
|
|
+++ b/internal/core/validation.go
|
|
|
|
@@ -30,7 +30,7 @@ import (
|
|
|
|
)
|
|
|
|
|
2023-07-04 15:15:58 +02:00
|
|
|
//this regexp copied from useradd(8) manpage
|
2023-07-04 15:10:00 +02:00
|
|
|
-const posixAccountNamePattern = `[a-z_][a-z0-9_-]*\$?`
|
|
|
|
+const posixAccountNamePattern = `[a-z_][a-z0-9._-]*\$?`
|
|
|
|
|
|
|
|
var (
|
|
|
|
errIsMissing = errors.New("is missing")
|
|
|
|
--
|
|
|
|
2.41.0
|
|
|
|
|