Start working on the changepassword api method

TODO: fix unit testing
This commit is contained in:
sgdc3
2017-10-04 20:12:53 +02:00
parent 816e751fe7
commit e268c3a624
5 changed files with 65 additions and 36 deletions
@@ -285,6 +285,16 @@ public class AuthMeApi {
management.performUnregisterByAdmin(null, name, Bukkit.getPlayer(name));
}
/**
* Change a user's password
*
* @param name the user name
* @param newPassword the new password
*/
public void changePassword(String name, String newPassword) {
management.performPasswordChangeAsAdmin(null, name, newPassword);
}
/**
* Get all the registered names (lowercase)
*