mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
when adding a new database use Database.set_sqlalchemy_uri so that the password is stored encrypted. (#1177)
This fixes a regression I introduced with PR #1137
This commit is contained in:
parent
49cefc8b00
commit
1fa18922fa
@ -521,6 +521,7 @@ class DatabaseView(CaravelModelView, DeleteMixin): # noqa
|
|||||||
}
|
}
|
||||||
|
|
||||||
def pre_add(self, db):
|
def pre_add(self, db):
|
||||||
|
db.set_sqlalchemy_uri(db.sqlalchemy_uri)
|
||||||
utils.merge_perm(sm, 'database_access', db.perm)
|
utils.merge_perm(sm, 'database_access', db.perm)
|
||||||
|
|
||||||
def pre_update(self, db):
|
def pre_update(self, db):
|
||||||
|
Loading…
Reference in New Issue
Block a user