Add an API to reset the password

This commit is contained in:
Nikolai Rodionov 2024-05-22 00:20:59 +02:00
parent cfb596e68b
commit f4707b295f
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -6,18 +6,15 @@ import (
"fmt"
"time"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/consts"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/email"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/hash"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/kube"
"github.com/google/uuid"
"github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
rbacv1 "k8s.io/api/rbac/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"