mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-24 10:41:24 +00:00
added nonce to group resource
This commit is contained in:
@@ -165,8 +165,8 @@ export function validateSecretKey(obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for messageKey and nonce properties
|
||||
if (!value.hasOwnProperty("messageKey") || !value.hasOwnProperty("nonce")) {
|
||||
// Check for messageKey
|
||||
if (!value.hasOwnProperty("messageKey")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -177,9 +177,6 @@ export function validateSecretKey(obj) {
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if (typeof value.nonce !== "string" || value.nonce.trim() === "") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// If all checks passed, return true
|
||||
@@ -2162,7 +2159,7 @@ export const Group = ({
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<WebSocketActive
|
||||
|
Reference in New Issue
Block a user