Skip to content

Commit bc6d4b4

Browse files
committed
feat: Add JWT-based authentication, authorization, and database connection pooling.
1 parent c2ef84c commit bc6d4b4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/auth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ use chrono::{Duration, Utc};
3333
use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation};
3434
use once_cell::sync::Lazy;
3535
use serde::{Deserialize, Serialize};
36+
use std::collections::HashSet;
3637
use std::env;
3738

3839
use crate::db::{self, DbPool};

backend/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ async fn insert_default_tutorials_tx(
988988
.execute(&mut **tx)
989989
.await?;
990990

991-
replace_tutorial_topics_tx(tx, id, &topics_vec).await?;
991+
crate::repositories::tutorials::replace_tutorial_topics_tx(tx, id, &topics_vec).await?;
992992
}
993993

994994
Ok(())

0 commit comments

Comments
 (0)