mirror of
https://github.com/moparisthebest/mail
synced 2024-12-01 13:22:16 -05:00
added private key model
This commit is contained in:
parent
0cb5214b94
commit
8326e21b1b
@ -1,22 +1,22 @@
|
|||||||
(function() {
|
(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
app.model.SecretKey = Backbone.Model.extend({
|
app.model.PrivateKey = Backbone.Model.extend({
|
||||||
|
|
||||||
defaults: {
|
defaults: {
|
||||||
_id: null,
|
_id: null,
|
||||||
userId: null,
|
userId: null,
|
||||||
encryptedKey: null,
|
encryptedKey: null,
|
||||||
keyIV: null
|
iv: null
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {}
|
initialize: function() {}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.model.SecretKeyCollection = Backbone.Collection.extend({
|
app.model.PrivateKeyCollection = Backbone.Collection.extend({
|
||||||
|
|
||||||
model: app.model.SecretKey
|
model: app.model.PrivateKey
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user