diff --git a/digitaleagentur/utils.py b/digitaleagentur/utils.py index 3136f89..e411a61 100644 --- a/digitaleagentur/utils.py +++ b/digitaleagentur/utils.py @@ -108,9 +108,11 @@ def checkAbsenceWorkdayCollideDelete(absence): Double-Check: Logged-Session from NC (session-id cannot be hacked cause it is serverside) and we check userId local, django and NC ''' + import xmltodict, json, requests import urllib.request as urllib2 from django.contrib.auth import login, logout +''' def ncLogin(request, uid): #try: logout(request) @@ -120,7 +122,7 @@ def ncLogin(request, uid): return redirect('users-dashboard') #return redirect('login') #return redirect('users-dashboard') - +''' ''' getNCLoggedUserBySession diff --git a/users/views.py b/users/views.py index cf6578d..3897a1e 100644 --- a/users/views.py +++ b/users/views.py @@ -82,14 +82,6 @@ from django.contrib.auth import login, logout from django.core.mail import send_mail def ncLogin(request, uid): print("HIER PASSIERT DER NCLOGIN" + str(uid)) - send_mail( - 'TT', - 'as', - 'holger.trampe@gymhum.de', - ["htrampe@gmail.com"], - html_message="

LOGGING

" + uid, - fail_silently=True - ) #try: logout(request) if(uid == urllib2.unquote(request.COOKIES['nc_username']) and getNCLoggedUserBySession(request.COOKIES['nc_session_id'])):