mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
use cors and identity crates
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use actix::{Handler, Message};
|
||||
use actix_web::{dev::Payload, Error, HttpRequest};
|
||||
use actix_web::{middleware::identity::Identity, FromRequest};
|
||||
use actix_web::{dev::Payload, Error, HttpRequest, FromRequest};
|
||||
use actix_identity::Identity;
|
||||
use bcrypt::verify;
|
||||
use diesel::prelude::*;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
use actix::Addr;
|
||||
use actix_web::middleware::identity::Identity;
|
||||
use actix_identity::Identity;
|
||||
use actix_web::{web, Error, HttpRequest, HttpResponse, Responder, ResponseError};
|
||||
use futures::Future;
|
||||
|
||||
|
@ -7,10 +7,8 @@ extern crate serde_derive;
|
||||
|
||||
use actix::prelude::*;
|
||||
use actix_files as fs;
|
||||
use actix_web::middleware::{
|
||||
identity::{CookieIdentityPolicy, IdentityService},
|
||||
Logger,
|
||||
};
|
||||
use actix_identity::{CookieIdentityPolicy, IdentityService};
|
||||
use actix_web::middleware::Logger;
|
||||
use actix_web::{web, App, HttpServer};
|
||||
use chrono::Duration;
|
||||
use diesel::{r2d2::ConnectionManager, PgConnection};
|
||||
|
Reference in New Issue
Block a user