Add an API to reset the password

This commit is contained in:
Nikolai Rodionov 2024-05-22 10:50:01 +02:00
parent 6e1edec413
commit b0ce3f1248
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -294,7 +294,7 @@ func (acc *Account) NewPassword(ctx context.Context, code string) error {
} }
userdata.Data["password"] = []byte(passwordHash) userdata.Data["password"] = []byte(passwordHash)
_, err = clientset.CoreV1().Secrets(acc.Data.UUID).Update(ctx, userdata, metav1.UpdateOptions{}) _, err = clientset.CoreV1().Secrets("softplayer-accounts").Update(ctx, userdata, metav1.UpdateOptions{})
if err != nil { if err != nil {
return err return err
} }