Browse Source

Merge pull request #3257 from gravitl/master

Master
Abhishek K 8 months ago
parent
commit
0e36d65f6f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      .github/workflows/deletedroplets.yml
  2. 1 1
      models/user_mgmt.go

+ 2 - 2
.github/workflows/deletedroplets.yml

@@ -37,7 +37,7 @@ jobs:
       - name: delete droplets
         if: success() || failure()
         run: |
-          sleep 1m
+          sleep 30m
           response=$(curl -X DELETE \
             -H "Content-Type: application/json" \
             -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
@@ -109,7 +109,7 @@ jobs:
       - name: delete droplets
         if: success() || failure()
         run: |
-          sleep 1m
+          sleep 30m
           response=$(curl -X DELETE \
             -H "Content-Type: application/json" \
             -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \

+ 1 - 1
models/user_mgmt.go

@@ -143,7 +143,7 @@ type UserGroup struct {
 
 // User struct - struct for Users
 type User struct {
-	UserName                   string                                `json:"username" bson:"username" validate:"min=3,max=40,in_charset|email"`
+	UserName                   string                                `json:"username" bson:"username" validate:"min=3,in_charset|email"`
 	ExternalIdentityProviderID string                                `json:"external_identity_provider_id"`
 	Password                   string                                `json:"password" bson:"password" validate:"required,min=5"`
 	IsAdmin                    bool                                  `json:"isadmin" bson:"isadmin"` // deprecated