More replacements: use username instead of emails
This commit is contained in:
parent
b44a7f98b5
commit
b9096de386
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue