.BANCHO. Log user ip in pep.py on login

This commit is contained in:
Howl
2016-05-29 13:32:11 +02:00
committed by Nyo
parent f8c1f49170
commit 3d57bc5bd2
2 changed files with 11 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ def handle(flaskRequest):
# Banned
raise exceptions.loginBannedException()
# Log user IP
userHelper.IPLog(userID, requestIP)
# No login errors!
# Delete old tokens for that user and generate a new one
glob.tokens.deleteOldTokens(userID)