use of kml.auth.Authentication in project Krothium-Launcher by DarkLBP.
the class MainFX method logout.
/**
* Logs out the selected user from the existing user list
*/
public final void logout() {
User selected = existingUsers.getSelectionModel().getSelectedItem();
int result = kernel.showAlert(Alert.AlertType.CONFIRMATION, null, Language.get(8));
if (result == 1) {
Authentication auth = kernel.getAuthentication();
auth.removeUser(selected);
kernel.saveProfiles();
updateExistingUsers();
}
}
Aggregations