added user ip to system for ltsp

This commit is contained in:
İsmail Başaran 2017-08-14 15:32:09 +03:00
parent 102815467c
commit 998cf89f52

View file

@ -299,6 +299,12 @@ class System:
desktop = system.db_service.select_one_result('session', 'desktop', " username='{0}'".format(username)) desktop = system.db_service.select_one_result('session', 'desktop', " username='{0}'".format(username))
return desktop return desktop
staticmethod
def userip(username):
system = System()
userip = system.db_service.select_one_result('session', 'ip', " username='{0}'".format(username))
return userip
@staticmethod @staticmethod
def user_home_path(username): def user_home_path(username):
# TODO temp # TODO temp