feature/enhanced-ticket-view
nate 2018-02-24 18:23:28 -08:00
parent 747f1e6f17
commit 13edcad576
1 changed files with 4 additions and 0 deletions

View File

@ -205,9 +205,13 @@ def on_townie_pre_save(sender, instance, **kwargs):
instance.create_on_disk() instance.create_on_disk()
instance.send_welcome_email() instance.send_welcome_email()
instance.write_authorized_keys() instance.write_authorized_keys()
return
# See if this user needs a rename on disk # See if this user needs a rename on disk
logging.info('checking for rename {} vs {}'.format(
existing.username, instance.username))
if existing.username != instance.username: if existing.username != instance.username:
logging.info('username do not match, going to rename')
instance.rename_on_disk(existing.username) instance.rename_on_disk(existing.username)