Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
bugs fixed v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hakancelikdev committed May 26, 2019
1 parent d101d83 commit 0746b52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion github_auth/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.http import Http404

#models
from core.github_auth.models import (
from .models import (
GithubAuthUser,
)

Expand Down
2 changes: 1 addition & 1 deletion github_auth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.conf import settings

# views
from core.github_auth.views import (
from .views import (
Github, Logout
)

Expand Down
5 changes: 3 additions & 2 deletions github_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
from django.http import Http404
from django.contrib.auth import logout, login
from django.contrib.auth.models import User
from django.contrib import messages

# models
from core.github_auth.models import GithubAuthUser
from .models import GithubAuthUser

# python
import requests, json
Expand Down Expand Up @@ -66,6 +67,6 @@ class Logout(View):

def get(self, request, *args, **kwargs):
if request.user.is_authenticated:
ms.success(request, self.success.format(request.user))
messages.success(request, self.success.format(request.user))
logout(request)
return HttpResponseRedirect(settings.LOGOUT_REDIRECT_URL)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="github_auth",
version='0.0.1',
version='0.0.2',
description='A django application to login via github.',
author='hakancelik96',
author_email='[email protected]',
Expand Down

0 comments on commit 0746b52

Please sign in to comment.