mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Ignore logins from people with no eve accounts attached
This commit is contained in:
@@ -35,7 +35,7 @@ def profile(request):
|
||||
profile = SSOUser(user=request.user)
|
||||
profile.save()
|
||||
|
||||
if not profile.primary_character:
|
||||
if not profile.primary_character and user.eveaccount_set.count():
|
||||
return redirect('sso.views.primarychar_change')
|
||||
|
||||
return render_to_response('sso/profile.html', locals(), context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user