fix(storage-manager): post salt and timestamp only when fetching key
This commit is contained in:
parent
0d43037fa7
commit
301c88f2ea
@ -320,10 +320,12 @@ export class StorageManager {
|
|||||||
if (!(options && options.location && options.encryption))
|
if (!(options && options.location && options.encryption))
|
||||||
throw new Error('Storage Manager cannot request storage key with unsupported options!');
|
throw new Error('Storage Manager cannot request storage key with unsupported options!');
|
||||||
|
|
||||||
|
const enc = this.load('encryption', { ...options, encryption: false });
|
||||||
const requestBody = {
|
const requestBody = {
|
||||||
type : options.encryption,
|
type : options.encryption,
|
||||||
length : 42,
|
length : 42,
|
||||||
...this.load('encryption', { ...options, encryption: false }),
|
salt : enc.salt,
|
||||||
|
timestamp : enc.timestamp,
|
||||||
};
|
};
|
||||||
|
|
||||||
this._global.App.httpClient.post({
|
this._global.App.httpClient.post({
|
||||||
|
|||||||
@ -433,6 +433,7 @@ export class ExamCorrect {
|
|||||||
const cells = new Map();
|
const cells = new Map();
|
||||||
|
|
||||||
const dateCell = document.createElement('TD');
|
const dateCell = document.createElement('TD');
|
||||||
|
dateCell.classList.add('uw-exam-correct--date-cell');
|
||||||
const date = moment(rowInfo.date);
|
const date = moment(rowInfo.date);
|
||||||
dateCell.appendChild(document.createTextNode(date.format(this._dateFormat)));
|
dateCell.appendChild(document.createTextNode(date.format(this._dateFormat)));
|
||||||
dateCell.setAttribute('date', date.utc().format());
|
dateCell.setAttribute('date', date.utc().format());
|
||||||
|
|||||||
@ -3,6 +3,11 @@ $exam-correct--input-status-margin: 10px
|
|||||||
table[uw-exam-correct]
|
table[uw-exam-correct]
|
||||||
table-layout: fixed
|
table-layout: fixed
|
||||||
|
|
||||||
|
td.uw-exam-correct--date-cell
|
||||||
|
text-align: right
|
||||||
|
td.uw-exam-correct--part-cell
|
||||||
|
text-align: right
|
||||||
|
|
||||||
th.uw-exam-correct--user-cell, td.uw-exam-correct--user-cell
|
th.uw-exam-correct--user-cell, td.uw-exam-correct--user-cell
|
||||||
min-width: 200px
|
min-width: 200px
|
||||||
th.uw-exam-correct--part-cell, td.uw-exam-correct--part-cell
|
th.uw-exam-correct--part-cell, td.uw-exam-correct--part-cell
|
||||||
@ -11,6 +16,7 @@ table[uw-exam-correct]
|
|||||||
width: 70px
|
width: 70px
|
||||||
padding: 4px 8px
|
padding: 4px 8px
|
||||||
|
|
||||||
|
|
||||||
[uw-exam-correct] input:invalid:not(.no-value)
|
[uw-exam-correct] input:invalid:not(.no-value)
|
||||||
border: 2px solid var(--color-error)
|
border: 2px solid var(--color-error)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user