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