Revision 9f8ad4c5 logic/users.py
b/logic/users.py | ||
---|---|---|
46 | 46 |
user.uniq = unq |
47 | 47 |
user.type = t |
48 | 48 |
user.credit = 10 #TODO: Fix this when we have a per group policy |
49 |
if hasattr(user, 'max_invitations'): |
|
50 |
user.max_invitations = settings.MAX_INVITATIONS |
|
51 | 49 |
user.save() |
52 | 50 |
create_auth_token(user) |
53 | 51 |
|
Also available in: Unified diff