Unverified Commit a0afbf20 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Fix console account password change (#1027)

parent 5cf49927
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ func (s *ConsoleServer) UpdateAccount(ctx context.Context, in *console.UpdateAcc
		}
	}

	var newPassword string
	var newPassword []byte
	if v := in.Password; v != nil {
		p := v.Value
		if len(p) < 8 {
@@ -653,7 +653,7 @@ func (s *ConsoleServer) UpdateAccount(ctx context.Context, in *console.UpdateAcc
			s.logger.Error("Error hashing password.", zap.Error(err))
			return nil, status.Error(codes.Internal, "Error updating user account password.")
		}
		newPassword = string(hashedPassword)
		newPassword = hashedPassword
	}

	if v := in.Wallet; v != nil && v.Value != "" {