summaryrefslogtreecommitdiff
path: root/meetingtools/apps/auth/utils.py
blob: 1a0174c29ec6909bcc062bbd101a065122d0a9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''
Created on Jul 7, 2010

@author: leifj
'''
from uuid import uuid4

def nonce():
    return uuid4().hex

def anonid():
    return uuid4().urn

def groups(request):
    groups = []
    if request.user.is_authenticated():
        groups = request.user.groups

    return groups