Skip to content

Commit

Permalink
Auth bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feeelin committed Mar 25, 2024
1 parent fba6eaf commit 012613f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions logs/auth.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ INFO:root:[2024.03.11 - 16:48:46] LOGOUT admin ID 2
INFO:root:[2024.03.24 - 20:03:38] LOGIN feelin ID 1
WARNING:django.request:Not Found: /favicon.ico
INFO:django.utils.autoreload:E:\cinema\movies\services\get_current_and_next_movies.py changed, reloading.
INFO:root:[2024.03.25 - 12:19:41] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:19:44] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:19:45] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:19:47] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:19:53] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:20:10] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:20:26] LOGIN feelin ID 1
INFO:root:[2024.03.25 - 12:47:52] LOGOUT feelin ID 1
WARNING:django.request:Not Found: /favicon.ico
INFO:root:[2024.03.25 - 12:59:55] LOGOUT feelin ID 1
2 changes: 2 additions & 0 deletions tickets/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.shortcuts import render
from tickets.models import Ticket
Expand All @@ -7,6 +8,7 @@
# Create your views here


@login_required(login_url='users:login')
def buy(request, screening_id):
if request.method == 'POST':
return save_users_tickets(request, screening_id)
Expand Down

0 comments on commit 012613f

Please sign in to comment.