mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00: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:
committed by
Maxime Beauchemin
parent
49cefc8b00
commit
1fa18922fa
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user