saml: don't try saving lasso identity if there's none (#6565)

This commit is contained in:
Frédéric Péters 2015-02-20 16:00:26 +01:00
parent cb31fd9b7b
commit 57ada622e4
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class Saml2Directory(qommon.saml2.Saml2Directory):
if not login.nameIdentifier.content in user.name_identifiers:
user.name_identifiers.append(login.nameIdentifier.content)
if login:
if login and login.identity:
user.lasso_dump = login.identity.dump()
user.store()