note.setText("New shared secret is empty or do not match.");
return;
}
// Checks if the old shared secret is OK
ClearspaceManager manager = ClearspaceManager.getInstance();
if (!manager.getSharedSecret().equals(oldSharedSecret)) {
note.addAttribute("type", "error");
note.setText("Old shared secret is not valid.");
return;
}