mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Access the UserProfile's new email field rather than using User.
This is preparatory for stopping using the User model. (imported from commit a1b0808c8cc2ddd19a25163f91c4f18620c9ce90)
This commit is contained in:
@@ -24,9 +24,9 @@ class Command(BaseCommand):
|
||||
user_profile = get_user_profile_by_email(args[0])
|
||||
|
||||
print "Deactivating %s (%s) - %s" % (user_profile.full_name,
|
||||
user_profile.user.email,
|
||||
user_profile.email,
|
||||
user_profile.realm.domain)
|
||||
print "%s has the following active sessions:" % (user_profile.user.email,)
|
||||
print "%s has the following active sessions:" % (user_profile.email,)
|
||||
for session in user_sessions(user_profile.user):
|
||||
print session.expire_date, session.get_decoded()
|
||||
print ""
|
||||
|
||||
Reference in New Issue
Block a user