1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-13 09:32:23 +02:00

Added Config Draft

This commit is contained in:
2020-01-15 23:06:52 +01:00
parent 88d3c22b12
commit ff713e37c8
4 changed files with 18 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ from .models import Offer, Gamer
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseForbidden
from django.contrib.auth.decorators import login_required
# For Steam Open ID handling
from oic.oic import Client
# STATIC PAGES
@@ -36,6 +38,17 @@ def search(request, filter):
return render(request, 'core/filter.html')
# USER SIGNUP
def signup(request):
client = Client()
issuer = client.discover('https://steamcommunity.com/openid/login')
#provider_info = client.provider_config(issuer)
context = {
'url': issuer
}
return render(request, 'core/signup.html', context)
# USER AREA
@login_required
def offer_refresh(request, offerID):