sad
This commit is contained in:
parent
4c5d942f85
commit
d6e7cf2ca9
|
|
@ -84,15 +84,16 @@ from django.views.generic import TemplateView
|
|||
|
||||
# Entry-Point for NC
|
||||
def ncLogin(request, uid):
|
||||
logout(request)
|
||||
#logout(request)
|
||||
#print(uid)
|
||||
user = User.objects.get(username=uid)
|
||||
#if(getNCLoggedUserBySession(user.profile.nc_sid) == uid):
|
||||
# login(request, user)
|
||||
# return redirect('users-dashboard')
|
||||
#return redirect('nclog', uid=uid)
|
||||
nc_login_headers = {'Authorization' : 'Bearer ' + "9c3a2f61087829873151e17ab2e81fd2"}
|
||||
nc_login_headers = {'Authorization' : 'Bearer ' + "ioqv9r9g0dc6fh5e787vb2g8fo"}
|
||||
r = requests.get("https://cloud.digitale-agentur.com/ocs/v2.php/apps/user_status/api/v1/user_status", headers=nc_login_headers, verify=False)
|
||||
print(r.text)
|
||||
#xpars = xmltodict.parse(r.text)
|
||||
#js = json.dumps(xpars)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue