mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed mediawiki password reset
This commit is contained in:
@@ -82,10 +82,11 @@ class MediawikiService(BaseService):
|
||||
pwhash = self._gen_mw_hash(password)
|
||||
self._dbcursor.execute(self.SQL_ENABLE_USER, [pwhash, uid])
|
||||
self._db.connection.commit()
|
||||
pass
|
||||
return True
|
||||
|
||||
def reset_password(self, uid, password):
|
||||
""" Reset the user's password """
|
||||
self.enable_user(uid, password)
|
||||
return self.enable_user(uid, password)
|
||||
|
||||
|
||||
ServiceClass = 'MediawikiService'
|
||||
|
||||
Reference in New Issue
Block a user