divick-vama commented on issue #20455:
URL: https://github.com/apache/superset/issues/20455#issuecomment-3496906155
@dosu using the following code:
```
def DB_CONNECTION_MUTATOR(uri, params, username, security_manager, source):
if username and source is QuerySource.SQL_LAB:
user = security_manager.find_user(username=username)
else:
user = security_manager.current_user
if user:
uri.username = user.username
uri.password = "password"
return uri, params
```
superset is giving error:
```
File "/app/pythonpath/superset_config.py", line 19, in db_connection_mutator
uri.username = user.email
AttributeError: can't set attribute
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]