Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
document security
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 15, 2020
1 parent e3ee0ec commit df33748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/andromeda/araserver/pages/UpdateDB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class UpdateDB {
i.startsWith("prop=") -> prop = i.replace("prop=", "")

}
if(key.equals("")) throw SecurityException("not a valid user")
val dbLink = System.getenv("IOTDB")
val client = DocumentClient("https://ara-account-data.documents.azure.com:443/", dbLink, ConnectionPolicy(), ConsistencyLevel.Session)
update(client, key!!, id!!, prop!!, newVal)
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/andromeda/araserver/util/NewDoc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class NewDoc {
i.startsWith("user=") -> key = i.replace("user=", "")

}
if(key.equals("")) throw SecurityException("not a valid user")
val dbLink = System.getenv("IOTDB")

newDoc(key!!, newVal!!, id!!)
Expand Down

0 comments on commit df33748

Please sign in to comment.