Пример #1
0
def login(request):
    from rebecca.users.api import authenticate
    username = request.POST['username']
    password = request.POST['password']
    if authenticate(request, username, password):
        return "OK"
    return "NG"
Пример #2
0
 def _call_fut(self, *args, **kwargs):
     from rebecca.users.api import authenticate
     return authenticate(*args, **kwargs)