cargo fix on the server

This commit is contained in:
filipriec
2025-04-19 19:00:14 +02:00
parent f74a6ef093
commit b01ba0b2d9
3 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
// src/auth/handlers/login.rs // src/auth/handlers/login.rs
use bcrypt::verify; use bcrypt::verify;
use tonic::{Request, Response, Status}; use tonic::{Response, Status};
use crate::db::PgPool; use crate::db::PgPool;
use crate::auth::{models::AuthError, logic::jwt}; // Fixed import path use crate::auth::logic::jwt; // Fixed import path
use common::proto::multieko2::auth::{LoginRequest, LoginResponse}; use common::proto::multieko2::auth::{LoginRequest, LoginResponse};
pub async fn login( pub async fn login(

View File

@@ -1,6 +1,6 @@
// src/auth/middleware.rs // src/auth/middleware.rs
use tonic::{metadata::MetadataValue, service::Interceptor, Status}; use tonic::{service::Interceptor, Status};
use crate::auth::{logic::jwt, models::AuthError}; use crate::auth::logic::jwt;
pub struct AuthInterceptor; pub struct AuthInterceptor;

View File

@@ -1,6 +1,6 @@
// src/auth/models.rs // src/auth/models.rs
use serde::{Deserialize, Serialize}; use serde::Deserialize;
use validator::Validate; use validator::Validate;
#[derive(Debug, Validate, Deserialize)] #[derive(Debug, Validate, Deserialize)]