Skip to content

Commit

Permalink
when adding a new database use Database.set_sqlalchemy_uri so that th…
Browse files Browse the repository at this point in the history
…e password is stored encrypted. (#1177)

This fixes a regression I introduced with PR #1137
  • Loading branch information
dennisobrien authored and mistercrunch committed Sep 22, 2016
1 parent 49cefc8 commit 1fa1892
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ class DatabaseView(CaravelModelView, DeleteMixin): # noqa
}

def pre_add(self, db):
db.set_sqlalchemy_uri(db.sqlalchemy_uri)
utils.merge_perm(sm, 'database_access', db.perm)

def pre_update(self, db):
Expand Down

0 comments on commit 1fa1892

Please sign in to comment.