File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -635,8 +635,8 @@ def manage_strays(self, umapi_connectors):
635
635
def get_commands (key ):
636
636
"""Given a user key, returns the umapi commands targeting that user"""
637
637
id_type , username , domain = self .parse_user_key (key )
638
- if '@' in username and username in self .email_override :
639
- username = self .email_override [username ]
638
+ if '@' in username and username . lower () in self .email_override :
639
+ username = self .email_override [username . lower () ]
640
640
return user_sync .connector .umapi .Commands (identity_type = id_type , username = username , domain = domain )
641
641
642
642
# do the secondary umapis first, in case we are deleting user accounts from the primary umapi at the end
@@ -981,8 +981,8 @@ def map_email_override(self, umapi_user):
981
981
:return:
982
982
"""
983
983
email = umapi_user .get ('email' , '' )
984
- username = umapi_user .get ('username' , '' )
985
- if '@' in username and username != email :
984
+ username = umapi_user .get ('username' , '' ). lower ()
985
+ if '@' in username and username != email . lower () :
986
986
self .email_override [username ] = email
987
987
988
988
@staticmethod
You can’t perform that action at this time.
0 commit comments