mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): login account allow startwith capital letter (#20670)
This commit is contained in:
@@ -6758,7 +6758,7 @@ var (
|
||||
)
|
||||
|
||||
func (manager *SGuestManager) ValidateNameLoginAccount(name string) error {
|
||||
if hostnameREG.MatchString(name) {
|
||||
if serverNameREG.MatchString(name) {
|
||||
return nil
|
||||
}
|
||||
return httperrors.NewInputParameterError("name starts with letter, and contains letter, number and - only")
|
||||
|
||||
Reference in New Issue
Block a user