Add an API to reset the password
This commit is contained in:
parent
6e1edec413
commit
b0ce3f1248
@ -294,7 +294,7 @@ func (acc *Account) NewPassword(ctx context.Context, code string) error {
|
||||
}
|
||||
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user