Skip to content

Commit 8e948b3

Browse files
committed
clear
1 parent fb8faf2 commit 8e948b3

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ actix-rt = "1.0.0"
1010
actix-service = "1.0.1"
1111
actix-cors = "0.2.0"
1212
log = "0.4.8"
13-
log4rs = "0.9.0"
13+
env_logger = "0.7.1"
1414
diesel_migrations = "1.4.0"
1515
serde = "1.0.104"
1616
serde_derive = "1.0.104"

migrations/2019-02-20-054109_create_login_history_table/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
CREATE TABLE login_history
33
(
44
id SERIAL PRIMARY KEY NOT NULL,
5-
user_id INTEGER NOT NULL REFERENCES users(id),
5+
user_id BIGINT NOT NULL REFERENCES users(id),
66
login_timestamp TIMESTAMP WITH TIME ZONE NOT NULL
77
);

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ extern crate serde_derive;
1414
extern crate serde_json;
1515
extern crate actix_rt;
1616
extern crate actix_cors;
17-
// extern crate env_logger;
18-
extern crate log4rs;
17+
extern crate env_logger;
1918
extern crate serde;
2019
extern crate dotenv;
2120
extern crate futures;

src/middleware/authen_middleware.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ where
6060
debug!("{:?}",req.head_mut().headers());
6161
let headers = req.headers_mut();
6262
headers.append(HeaderName::from_static("content-length"),HeaderValue::from_static("true"));
63-
// let (r, pl) = req.into_parts();
64-
// debug!("{:?}",&r);
65-
// debug!("{:?}",pl);
66-
// let req2 = ServiceRequest::from_parts(r, pl);
67-
// assert!(ServiceRequest::from_parts(r, pl).is_ok());
6863
if Method::OPTIONS == *req.method() {
6964
authenticate_pass = true;
7065
} else {

0 commit comments

Comments
 (0)