dirname is new user property

This commit is contained in:
Peter Hormanns 2021-08-13 14:35:19 +02:00
parent bdbbc57d05
commit c8dc4469cd

View File

@ -124,7 +124,7 @@ public class JsonPillarServlet extends HttpServlet {
final String fullUsername = user.getName(); final String fullUsername = user.getName();
final String usernamePostfix = fullUsername.length() > 6 ? fullUsername.substring(6) : "_"; final String usernamePostfix = fullUsername.length() > 6 ? fullUsername.substring(6) : "_";
writer.println(" \"user\": \"" + fullUsername + "\""); writer.println(" \"user\": \"" + fullUsername + "\"");
writer.println(" \"dirname\": \"" + usernamePostfix + "\""); writer.println(" , \"dirname\": \"" + usernamePostfix + "\"");
writer.println(" , \"uid\": " + user.getUserId()); writer.println(" , \"uid\": " + user.getUserId());
writer.println(" , \"comment\": \"" + user.getComment() + "\""); writer.println(" , \"comment\": \"" + user.getComment() + "\"");
writer.println(" , \"shell\": \"" + user.getShell() + "\""); writer.println(" , \"shell\": \"" + user.getShell() + "\"");