Skip to content

Commit

Permalink
Merge 76c57a4 into 1d8ad1d
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavmule committed Nov 4, 2018
2 parents 1d8ad1d + 76c57a4 commit 3a67e2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions masonite/snippets/auth/controllers/LoginController.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def show(self, request: Request, view: View):
Returns:
masonite.view.View -- Returns the Masonite view class.
"""
if request.user():
return request.redirect('/home')
return view.render('auth/login', {'app': request.app().make('Application'), 'Auth': Auth(request)})

def store(self, request: Request):
Expand Down

0 comments on commit 3a67e2f

Please sign in to comment.