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.

This fixes a regression I introduced with PR apache#1137
  • Loading branch information
dennisobrien committed Sep 22, 2016
1 parent cbc70d3 commit 55372fc
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 55372fc

Please sign in to comment.