diff options
Diffstat (limited to 'sca-cpp/trunk/hosting/server/user.py')
-rw-r--r-- | sca-cpp/trunk/hosting/server/user.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sca-cpp/trunk/hosting/server/user.py b/sca-cpp/trunk/hosting/server/user.py index 227722ac48..9be48b33da 100644 --- a/sca-cpp/trunk/hosting/server/user.py +++ b/sca-cpp/trunk/hosting/server/user.py @@ -17,12 +17,13 @@ # User info service component -# Return the user id -def id(user, email, nick, full, first, last, realm): +# Return the current user id +def get(i, user, email, nick, full, first, last, realm, host): if email.eval() != '?': return email.eval() if nick.eval() != '?': return nick.eval() + '@' + realm.eval() if user.eval() != '?': return user.eval() + '@' + realm.eval() - return 'joe@localhost' + return 'anonymous@' + host.eval(); + |