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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user