mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
27 lines
487 B
Python
27 lines
487 B
Python
from django.shortcuts import render_to_response
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
from sso.models import ServiceAccount
|
|
|
|
def index(request):
|
|
pass
|
|
|
|
@login_required
|
|
def profile(request):
|
|
|
|
user = request.user
|
|
profile = request.user.get_profile()
|
|
srvaccounts = ServiceAccounts.objects.get(user=request.user)
|
|
|
|
return render_to_response('sso/profile.html', locals())
|
|
|
|
|
|
def service_add(request):
|
|
pass
|
|
|
|
def service_del(request):
|
|
pass
|
|
|
|
|
|
|