mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-154 & SEARCH-116
1. Getting the key and the userId from the client app 2. Creating a encrypted file as soon as the batch indexes are merged 3. Deleting the data folder when the quits 4. Few changes in the encryption and decryption
This commit is contained in:
committed by
Keerthi Niranjan
parent
8d73e930ed
commit
c8b45e091e
19
js/main.js
19
js/main.js
@@ -92,23 +92,8 @@ app.on('activate', function () {
|
||||
|
||||
app.on('will-quit', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
/**
|
||||
* This is for demo purpose only
|
||||
* will be removing this after implementing
|
||||
* in client-app
|
||||
*/
|
||||
// Will be handling this in SEARCH-206
|
||||
let key = "XrwVgWR4czB1a9scwvgRUNbXiN3W0oWq7oUBenyq7bo="; // temporary only
|
||||
crypto.encryption(key)
|
||||
.then(function () {
|
||||
// will be handling after implementing in client app
|
||||
app.exit();
|
||||
})
|
||||
.catch(function () {
|
||||
// will be handling after implementing client app
|
||||
app.exit();
|
||||
});
|
||||
crypto.deleteFolders();
|
||||
app.exit();
|
||||
});
|
||||
|
||||
// adds 'symphony' as a protocol
|
||||
|
||||
Reference in New Issue
Block a user