Skip to content
Snippets Groups Projects
Commit 0e21b411 authored by Alexandre Eberhardt's avatar Alexandre Eberhardt Committed by Alexandre Eberhardt
Browse files

public nameserver: fix registration error

this commit fix the error when creating user while using the public nameserver
replace http by https in the nameserver address
add Publickey and Signature to the registration request

Gitlab: #150
Change-Id: I124fe47a7d6f3c263f441dc8a3fe454a23c91742
parent 473dc18c
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,12 @@ public class RegisterUserFlow {
NameRegistrationRequest nameRegistrationRequest = new NameRegistrationRequest();
nameRegistrationRequest.setOwner(ethKeyPair[0]);
nameRegistrationRequest.setAddr(user.getJamiId());
nameRegistrationRequest.setPublickey("");
nameRegistrationRequest.setSignature("");
if (nameServer != null
&& nameServer.registerName(user.getUsername(), nameRegistrationRequest) != 200) {
log.error(
"Failed to register the user " + user.getUsername() + " with the name server.");
return false;
}
datastore.getUserDao().storeObject(user);
......
......@@ -273,7 +273,7 @@ export default function IdentityManagement(props: IdentityManagementProps) {
activeDirectorySettings: {},
};
const settings: localSettings = {
publicNameServer: "http://ns.jami.net",
publicNameServer: "https://ns.jami.net",
publicNames: nameServerChecked,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment