Skip to content
Snippets Groups Projects
Commit 5e74bb32 authored by Alexey Kuklin's avatar Alexey Kuklin
Browse files

Merge branch '373-Modify_usage_of_Gravatar' into 'master'

Modify usage of Gravatar

Closes dashboard#373

See merge request !22
parents 2bd7f8f4 3f3fe018
No related branches found
No related tags found
1 merge request!22Modify usage of Gravatar
......@@ -653,6 +653,19 @@ const connection = Penpal.connectToParent({
return responseToClient;
},
identityPullAvatarFromGravatar: async () => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
if (
!authenticationPublicKey ||
!window.loadedIdentities[authenticationPublicKey] ||
!extendPinCodeTtl(authenticationPublicKey)
) {
return encodeResponse("400", "", "Identity not authenticated");
}
return await executeRestfulFunction("private", viamApi, viamApi.identityPullAvatarFromGravatar);
},
identityAddNewDevice() {
return new Penpal.Promise(result => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
......
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