wtf ?
This commit is contained in:
parent
735534ea2d
commit
3c7aa052dc
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);
|
post("https://git-users.peerat.dev/api/v1/admin/users/", createUser);
|
||||||
|
|
||||||
JSONObject sendKey = new JSONObject();
|
JSONObject sendKey = new JSONObject();
|
||||||
System.out.println("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", "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("read_only", false);
|
||||||
sendKey.put("title", "peer_at_code_auto_push_key_"+pseudo);
|
sendKey.put("title", "peer_at_code_auto_push_key_"+pseudo);
|
||||||
post("https://git-users.peerat.dev/api/v1/admin/users/"+pseudo+"/keys", sendKey);
|
post("https://git-users.peerat.dev/api/v1/admin/users/"+pseudo+"/keys", sendKey);
|
||||||
|
|
Loading…
Add table
Reference in a new issue