mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Modify the LDAP service to only use lowercase UIDs.
UVA always returns the UID as lowercase. This caused a postgres unique value problem for us.
This commit is contained in:
parent
428802b9d0
commit
8df1145471
@ -58,6 +58,7 @@ class LdapService(object):
|
||||
|
||||
@staticmethod
|
||||
def user_info(uva_uid):
|
||||
uva_uid = uva_uid.lower()
|
||||
user_info = db.session.query(LdapModel).filter(LdapModel.uid == uva_uid).first()
|
||||
if not user_info:
|
||||
app.logger.info("No cache for " + uva_uid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user