mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 15:06:48 +00:00
Revert "Added proper urlquote to user's email address when asking API"
This reverts commit b7f1adc619.
Looks like proper quoting is not a good idea
This commit is contained in:
parent
b7f1adc619
commit
0837cddc43
@ -7,7 +7,6 @@ from django.contrib import messages
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.urls import reverse, reverse_lazy
|
||||
from django.utils.http import urlquote
|
||||
from django.views.generic import FormView, TemplateView, View
|
||||
|
||||
from base.filters import BaseFilter
|
||||
@ -107,8 +106,7 @@ class DetailView(LoginRequiredMixin, FormView):
|
||||
# The API needs a call 'get user by id'!
|
||||
user = {}
|
||||
try:
|
||||
user_email = urlquote(self.kwargs['user_email'])
|
||||
urlpath = '/users/{}'.format(user_email)
|
||||
urlpath = '/users/{}'.format(self.kwargs['user_email'])
|
||||
users = api.get(self.request, urlpath)
|
||||
if len(users['users']) > 0:
|
||||
user = users['users'][0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user