From 3ec299e74d70561f2a89d22710e07a076c9fab4f Mon Sep 17 00:00:00 2001 From: Siemen Sikkema Date: Tue, 27 Sep 2016 08:22:01 +0200 Subject: [PATCH 1/2] Update middleware.md Replaces 'initialize it earlier and' with 'pass the same instance'. The word 'earlier' did not make sense given the context. --- auth/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/middleware.md b/auth/middleware.md index af4f766e..f4585824 100644 --- a/auth/middleware.md +++ b/auth/middleware.md @@ -72,7 +72,7 @@ Once you've added the `AuthMiddleware` to the available middleware dictionary, m ### Sharing Cache -If you'd like the `Droplet` and the `AuthMiddleware` to share the same `CacheProtocol`, initialize it earlier and pass it to both. +If you'd like the `Droplet` and the `AuthMiddleware` to share the same `CacheProtocol`, pass the same instance to both. ``` import VaporRedis From f5f3950f7928b97dc767d9d04f896261f10cd2b7 Mon Sep 17 00:00:00 2001 From: Siemen Sikkema Date: Tue, 27 Sep 2016 09:19:31 +0200 Subject: [PATCH 2/2] Fix login example code --- auth/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/request.md b/auth/request.md index 4368e4dd..fb1cccfb 100644 --- a/auth/request.md +++ b/auth/request.md @@ -125,7 +125,7 @@ Adding the `Identifier` case for `Credentials` is easy, just look up the user by ```swift let id = Identifier(id: 42) -try req.auth.log(id) +try req.auth.login(id) ``` Now you can manually log users in with just their identifiers.