This commit is contained in:
jeffcheasey88 2023-09-09 21:42:14 +02:00
parent 735534ea2d
commit 3c7aa052dc

View file

@ -124,8 +124,8 @@ public class MailConfirmation extends FormResponse {
post("https://git-users.peerat.dev/api/v1/admin/users/", createUser);
JSONObject sendKey = new JSONObject();
System.out.println("ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
System.out.println(new String(new byte[] {0,0,0,7})+"ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
sendKey.put("key", new String(new byte[] {0,0,0,7})+"ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
sendKey.put("read_only", false);
sendKey.put("title", "peer_at_code_auto_push_key_"+pseudo);
post("https://git-users.peerat.dev/api/v1/admin/users/"+pseudo+"/keys", sendKey);