Skip to content

Commit d05abfa

Browse files
committed
Switch to Key::from
Signed-off-by: Elizabeth Myers <[email protected]>
1 parent bece10c commit d05abfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl App {
124124
let caching_store = CachingSessionStore::new(moka_store, redis_store);
125125
let session_layer = SessionManagerLayer::new(caching_store)
126126
.with_expiry(Expiry::OnInactivity(Duration::days(1)))
127-
.with_private(Key::derive_from(&self.state.env.csrf_key));
127+
.with_private(Key::from(&self.state.env.csrf_key));
128128

129129
let backend = Backend::new(self.state.db.clone());
130130
let auth_layer = AuthManagerLayerBuilder::new(backend, session_layer.clone()).build();

0 commit comments

Comments
 (0)