X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=auth%2Fviews.py;h=f6afa3fb57a4812ca8ca4cdb22981482a4244d27;hb=de93a901d06d0f4f666ff0fcafd1fa024da144e1;hp=d1e78b5373b9e2ef38087a9170e8e35355bb2f93;hpb=f72be702471054ae1469c293458b0adb1605418d;p=myslice.git diff --git a/auth/views.py b/auth/views.py index d1e78b53..f6afa3fb 100644 --- a/auth/views.py +++ b/auth/views.py @@ -8,12 +8,15 @@ from django.http import HttpResponseRedirect from auth.backend import MyCustomBackend from myslice.viewutils import the_user +from myslice.config import Config def login_user(request): state = "Please log in below..." username = password = '' - env={'hard_wired_users':MyCustomBackend.hard_wired_users} - + env={'hard_wired_users':MyCustomBackend.hard_wired_users, + 'manifold_url':Config.manifold_url(), + } + if request.POST: username = request.POST.get('username') password = request.POST.get('password')