refactor: Share code between all mysql based authorizers (#8174)

* Share code between all mysql based authorizers
I plan to update the mysql password encryption and this will allow the code to be changed in a single location.
It also reduces a lot of duplication.

* Fix tests, I suspect reauthenticate will work for these...
Do not allow password updates for several authorizers
This commit is contained in:
Tony Murray
2018-02-06 15:20:34 -06:00
committed by Neil Lathwood
parent f706d0ab41
commit 5141fc4872
10 changed files with 55 additions and 279 deletions

View File

@@ -32,7 +32,7 @@ interface Authorizer
* Check if a $username exists.
*
* @param string $username
* @param bool $throw_exception If this is enabled instead of returning false, this will throw an exception.
* @param bool $throw_exception Allows for a message to be sent to callers in case the user does not exist
* @return bool
*/
public function userExists($username, $throw_exception = false);