More replacements: use username instead of emails

This commit is contained in:
PCoder 2020-03-05 18:17:14 +05:30
parent b44a7f98b5
commit b9096de386

View file

@ -386,7 +386,7 @@ class PasswordResetConfirmView(HostingContextMixin,
user = CustomUser.objects.get(pk=uid)
opennebula_client = OpenNebulaManager(
email=user.email,
email=user.username,
password=user.password,
)
@ -1400,7 +1400,7 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
# fallback to get it from the infrastructure
try:
manager = OpenNebulaManager(
email=self.request.user.email,
email=self.request.user.username,
password=self.request.user.password
)
vm = manager.get_vm(vm_id)