Rename username2dirname() to userdir()

This commit is contained in:
flan
2017-11-03 00:17:22 +01:00
parent 33868f013d
commit 910e557776
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ class SyncApp(object):
if not self.user_manager.authenticate(username, password):
return
dirname = self.user_manager.username2dirname(username)
dirname = self.user_manager.userdir(username)
if dirname is None:
return
+1 -1
View File
@@ -20,7 +20,7 @@ class SimpleUserManager(object):
return True
def username2dirname(self, username):
def userdir(self, username):
"""
Returns the directory name for the given user. By default, this is just
the username. Override this to adjust the mapping between users and