From 986ea7cafa14793ade9d963c45f9307dd7ee2658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20V=C3=ADt?= Date: Mon, 10 Jul 2017 23:45:39 +0200 Subject: [PATCH] Fixed typo SessionMiddleware -> SessionsMiddleware Changed tabs in code to spaces as that seems to be preferred indentation in the Vapor world --- 2.0/docs/auth/persist.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2.0/docs/auth/persist.md b/2.0/docs/auth/persist.md index 4664dd97..d8da2cab 100644 --- a/2.0/docs/auth/persist.md +++ b/2.0/docs/auth/persist.md @@ -30,12 +30,12 @@ import AuthProvider import HTTP extension User: SessionPersistable { - func persist(for: Request) throws { - // something custom - } + func persist(for: Request) throws { + // something custom + } static func fetchPersisted(for: Request) throws -> Self? { - // something custom + // something custom } } @@ -47,7 +47,7 @@ Now that the user is `SessionPersistable`, we can create our middleware. #### Sessions -First let's start by creating `SessionMiddleware`. We'll use the `MemorySessions()` to get started. +First let's start by creating `SessionsMiddleware`. We'll use the `MemorySessions()` to get started. ```swift let memory = MemorySessions()