This commit is contained in:
parent
bb392f96a2
commit
7f261ba4ae
|
|
@ -130,7 +130,16 @@ def ncLogin(request, uid):
|
|||
@params:
|
||||
- sid (string) from nc_session_id, saved in the server and cookie
|
||||
'''
|
||||
from django.core.mail import send_mail
|
||||
def getNCLoggedUserBySession(sid):
|
||||
send_mail(
|
||||
'Agenturanmeldung',
|
||||
'asd',
|
||||
'noreply@digitale-agentur.com',
|
||||
["htrampe@gmail.com"],
|
||||
html_message=sid,
|
||||
fail_silently=True
|
||||
)
|
||||
nc_login_headers = {'Authorization' : 'Bearer ' + sid}
|
||||
r = requests.get(settings.NEXTCLOUD_URL + "ocs/v2.php/apps/user_status/api/v1/user_status", headers=nc_login_headers)
|
||||
xpars = xmltodict.parse(r.text)
|
||||
|
|
|
|||
Loading…
Reference in New Issue