Servie Adduser now returns a Service UID for each addition

This commit is contained in:
2010-03-07 01:35:57 +00:00
parent d31034d950
commit 0e345ce65b
3 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ class MediawikiService(BaseService):
pwhash = self._gen_mw_hash(password)
self._dbcursor.execute(self.SQL_ADD_USER, [self._clean_username(username), pwhash])
self._db.connection.commit()
return self._clean_username(username)
def delete_user(self, username):
""" Delete a user """