Commit b9096de3 authored by PCoder's avatar PCoder

More replacements: use username instead of emails

parent b44a7f98
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment