I update the script for sending a message to the mail when a user connects.
I took the script from viewtopic.php?t=15927 as a basis, but redid it for python 3.
Everything is working as expected, but there was one issue: I can't get the user's platform.
What does the request look like?
I tried to do this
Code: Select all
if attributes.get('auth_parms'):
useros = attributes('IV_PLAT')
else:
useros = 'Impossible to Determine'
Code: Select all
if attributes.get('IV_PLAT'):
useros = attributes('IV_PLAT')
else:
useros = 'Impossible to Determine'
Code: Select all
if attributes.client_info get('auth_parms'):
useros = attributes.client_info.get('IV_PLAT')
else:
useros = 'Impossible to Determine'
Thank you.