mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
f706d0ab41
commit
5141fc4872
@@ -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);
|
||||
|
Reference in New Issue
Block a user