Skip to content

Commit

Permalink
Update AuthenticationMiddleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso authored Jul 17, 2018
1 parent b9ad28c commit 3a34c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/middleware/AuthenticationMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, Request):
def before(self):
''' Run This Middleware Before The Route Executes '''
if not self.request.user():
self.request.redirectTo('login')
self.request.redirect_to('login')

def after(self):
''' Run This Middleware After The Route Executes '''
Expand Down

0 comments on commit 3a34c22

Please sign in to comment.