teampad feature

This commit is contained in:
Robert Helmer 2013-01-23 12:04:06 -08:00
parent 0f2d542bbe
commit 9212a39cff
14 changed files with 871 additions and 4 deletions

View file

@ -38,6 +38,7 @@ var Pad = function Pad(id) {
this.head = -1;
this.chatHead = -1;
this.publicStatus = false;
this.teamStatus = false;
this.passwordHash = null;
this.id = id;
this.savedRevisions = [];
@ -551,6 +552,15 @@ Pad.prototype.getSavedRevisions = function getSavedRevisions() {
return this.savedRevisions;
};
Pad.prototype.getTeamStatus = function getTeamStatus() {
return this.teamStatus;
};
Pad.prototype.setTeamStatus = function setTeamStatus(teamStatus) {
this.teamStatus = teamStatus;
this.saveToDatabase();
};
/* Crypto helper methods */
function hash(password, salt)