Skip to content

Commit

Permalink
fix: require general token to login
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzyct committed Sep 25, 2024
1 parent ddbd62b commit 8edd150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/auth/auth_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use actix_web::{web, web::Json, HttpRequest, HttpResponse};

use crate::{
core::{
middlewares::{auth::AuthMiddleware, state::AppState},
middlewares::{auth::AuthMiddleware, general::GeneralMiddleware, state::AppState},
response::ResponseBody,
types::AppResult,
},
Expand All @@ -23,7 +23,7 @@ pub async fn login_contoller(
state: web::Data<AppState>,
params: Json<LoginParams>,
req: HttpRequest,
// _: GeneralMiddleware,
_: GeneralMiddleware,
) -> AppResult<HttpResponse> {
let ip_addr = req.peer_addr().unwrap().ip().to_string();
let new_params = LoginParams {
Expand Down

0 comments on commit 8edd150

Please sign in to comment.