MXS-2574: Add PATCH for /users/inet endpoint

The alteration of user passwords is now done inside MaxScale. This
prevents the possibility of a user locking themselves out.
This commit is contained in:
Markus Mäkelä
2019-06-24 14:44:11 +03:00
parent 77671a2393
commit aac0ecc373
9 changed files with 115 additions and 13 deletions

View File

@ -97,6 +97,17 @@ bool users_auth(USERS* users, const char* user, const char* password);
*/
bool users_find(USERS* users, const char* user);
/**
* Change password for a user
*
* @param users The users table
* @param user User to alter
* @param password The new password for the user
*
* @return True if password was changed
*/
bool users_change_password(USERS* users, const char* user, const char* password);
/**
* Check if user is an administrator
*