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"
def _call_fut(self, *args, **kwargs): from rebecca.users.api import authenticate return authenticate(*args, **kwargs)