Update LoginRedirectMiddleware.md

What -> when
more explanation to make it clearer
This commit is contained in:
Christopher Saez 2017-03-08 23:29:43 +01:00 committed by GitHub
parent ffe4d8d3e0
commit 9d207f2e5b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ currentMenu: LoginRedirectMiddleware
# Login Redirect Middleware
`LoginRedirectMiddleware` is a Middleware to be used when you what to create an automatic redirection from any routes when the user is not authenticated.
`LoginRedirectMiddleware` is a Middleware to be used when you want to create an automatic redirection from any routes when the user is not authenticated. Users that want to access to a protected route will be redirected to a single route.
## Example
In your main.swift file: