|
|
|
@ -12,6 +12,8 @@ from django.db.models import Count, Max
@@ -12,6 +12,8 @@ from django.db.models import Count, Max
|
|
|
|
|
from django.http import HttpResponseRedirect |
|
|
|
|
from django.shortcuts import render_to_response |
|
|
|
|
from django.template import RequestContext |
|
|
|
|
from django.core.urlresolvers import reverse |
|
|
|
|
import django.contrib.auth.views |
|
|
|
|
|
|
|
|
|
from buyable.models import Purchase, Buyable, BuyableType |
|
|
|
|
from main.helper import getUserFromAuthblob |
|
|
|
@ -179,3 +181,11 @@ def pluginAuthblob(request, pluginId):
@@ -179,3 +181,11 @@ def pluginAuthblob(request, pluginId):
|
|
|
|
|
d['pluginmsg'] = "Authblob erfolgreich geändert" |
|
|
|
|
return render_to_response("settings/settings.html", d, RequestContext(request)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def login(request): |
|
|
|
|
''' Login - redirect wenn schon angemeldet. |
|
|
|
|
''' |
|
|
|
|
if request.user.is_authenticated(): |
|
|
|
|
return HttpResponseRedirect(reverse('main.views.startpage')) |
|
|
|
|
return django.contrib.auth.views.login(request) |
|
|
|
|
|
|
|
|
|