private...public...what the dif ?
This commit is contained in:
parent
514452c295
commit
119e789900
1 changed files with 2 additions and 2 deletions
|
@ -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.getPrivate().getEncoded())));
|
||||
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(pair.getPrivate().getEncoded())));
|
||||
System.out.println("ssh-rsa "+new String(encoder.encode(pair.getPublic().getEncoded())));
|
||||
sendKey.put("key", "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);
|
||||
|
|
Loading…
Add table
Reference in a new issue