Skip to content

Commit

Permalink
Update Serializer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
aarontharris committed Aug 25, 2015
1 parent 2ad7614 commit 771d738
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/loopd/data/Serializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ private void init() {
{ // MongoDB
MongoClient mongoClient = new MongoClient( "127.0.0.1", 26017 );
db = mongoClient.getDB( "loop" );

// FIXME: read REAL password from a local untracked config file so I don't have to manually maintain it
// same goes for ports and IPs
if ( !db.authenticate( "loopuser", "looppass".toCharArray() ) ) {
throw new IllegalStateException( "Not authorized to access the DB" );
}
Expand Down

0 comments on commit 771d738

Please sign in to comment.