mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
Update redis dependency to 0.22
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
## Unreleased - 2021-xx-xx
|
||||
|
||||
- Set secure attribute when adding a session removal cookie. [#300]
|
||||
- Update `redis` dependency to `0.22`.
|
||||
|
||||
[#300]: https://github.com/actix/actix-extras/pull/300
|
||||
|
||||
|
@ -46,7 +46,7 @@ actix-redis = { version = "0.12", optional = true }
|
||||
futures-core = { version = "0.3.7", default-features = false, optional = true }
|
||||
|
||||
# redis-rs-session
|
||||
redis = { version = "0.21", default-features = false, features = ["aio", "tokio-comp", "connection-manager"], optional = true }
|
||||
redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
actix-session = { path = ".", features = ["cookie-session", "redis-actor-session", "redis-rs-session"] }
|
||||
|
@ -21,7 +21,7 @@ struct User {
|
||||
|
||||
impl User {
|
||||
fn authenticate(credentials: Credentials) -> Result<Self, HttpResponse> {
|
||||
// TODO: figure out why I keep getting hacked
|
||||
// to do: figure out why I keep getting hacked /s
|
||||
if &credentials.password != "hunter2" {
|
||||
return Err(HttpResponse::Unauthorized().json("Unauthorized"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user