Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Include 'issuer' in creation of django-cyverse-auth Token
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Mclean committed Aug 22, 2018
1 parent cecbd9b commit f2906a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Meta:
app_label = "core"

def create_access_token(user, token_name=None, token_expire=None, remote_ip=None, issuer=None):
token = Token(user=user)
token = Token(user=user, issue=issuer)
token.save()
access_token, created = AccessToken.objects.update_or_create(token=token, name=token_name)
return access_token

0 comments on commit f2906a4

Please sign in to comment.