mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
4
.github/workflows/deletedroplets.yml
vendored
4
.github/workflows/deletedroplets.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: delete droplets
|
- name: delete droplets
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
run: |
|
run: |
|
||||||
sleep 1m
|
sleep 30m
|
||||||
response=$(curl -X DELETE \
|
response=$(curl -X DELETE \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
- name: delete droplets
|
- name: delete droplets
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
run: |
|
run: |
|
||||||
sleep 1m
|
sleep 30m
|
||||||
response=$(curl -X DELETE \
|
response=$(curl -X DELETE \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
|
||||||
|
@@ -143,7 +143,7 @@ type UserGroup struct {
|
|||||||
|
|
||||||
// User struct - struct for Users
|
// User struct - struct for Users
|
||||||
type User struct {
|
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"`
|
ExternalIdentityProviderID string `json:"external_identity_provider_id"`
|
||||||
Password string `json:"password" bson:"password" validate:"required,min=5"`
|
Password string `json:"password" bson:"password" validate:"required,min=5"`
|
||||||
IsAdmin bool `json:"isadmin" bson:"isadmin"` // deprecated
|
IsAdmin bool `json:"isadmin" bson:"isadmin"` // deprecated
|
||||||
|
Reference in New Issue
Block a user