Add an API to reset the password
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user