Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: eea1ed4ee5
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (7 sloc) 0.34 kB
from django.contrib.auth import login as dj_login, authenticate as dj_authenticate, logout as dj_logout
from rooibos.access.models import update_membership_by_ip
def login(request, user):
dj_login(request, user)
update_membership_by_ip(request.user, request.META['REMOTE_ADDR'])
authenticate = dj_authenticate
logout = dj_logout
Jump to Line
Something went wrong with that request. Please try again.