update deps, new version
This commit is contained in:
parent
89bebc6b03
commit
c5a9767881
@ -1,6 +1,6 @@
|
|||||||
# [unreleased]
|
# [0.2.2]
|
||||||
|
|
||||||
- ...
|
- Update dependencies
|
||||||
|
|
||||||
# [0.2.1]
|
# [0.2.1]
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rocket_session"
|
name = "rocket_session"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
|
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
@ -16,6 +16,6 @@ categories = [
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rand = "0.7.3"
|
rand = "0.8"
|
||||||
rocket = "0.4.2"
|
rocket = "0.4"
|
||||||
parking_lot = "0.10.0"
|
parking_lot = "0.11"
|
||||||
|
|||||||
@ -179,6 +179,7 @@ where
|
|||||||
let token: String = OsRng
|
let token: String = OsRng
|
||||||
.sample_iter(&rand::distributions::Alphanumeric)
|
.sample_iter(&rand::distributions::Alphanumeric)
|
||||||
.take(store.config.cookie_len)
|
.take(store.config.cookie_len)
|
||||||
|
.map(char::from)
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if !store_wg.sessions.contains_key(&token) {
|
if !store_wg.sessions.contains_key(&token) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user