File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,6 @@ async def create(
306
306
db_session , User , OAuthAccount
307
307
)
308
308
self .user_db = tenant_user_db
309
- self .database = tenant_user_db # is this even a real var?
310
309
311
310
if hasattr (user_create , "role" ):
312
311
user_create .role = UserRole .BASIC
@@ -415,12 +414,13 @@ async def oauth_callback(
415
414
verify_email_in_whitelist (account_email , tenant_id )
416
415
verify_email_domain (account_email )
417
416
417
+ # NOTE(rkuo): If this UserManager is instantiated per connection
418
+ # should we even be doing this here?
418
419
if MULTI_TENANT :
419
420
tenant_user_db = SQLAlchemyUserAdminDB [User , uuid .UUID ](
420
421
db_session , User , OAuthAccount
421
422
)
422
423
self .user_db = tenant_user_db
423
- self .database = tenant_user_db
424
424
425
425
oauth_account_dict = {
426
426
"oauth_name" : oauth_name ,
You can’t perform that action at this time.
0 commit comments