dependencies update

This commit is contained in:
arrelin
2026-01-24 18:06:14 +03:00
parent 8d98a7d24c
commit 83ce6dac8a
3 changed files with 43 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
use sea_orm::*;
use rand::distributions::Alphanumeric;
use rand::distr::Alphanumeric;
use rand::Rng;
use crate::models::invite_link::{self, Entity as InviteLink, Model as InviteLinkModel};
use crate::models::{user, User};
@@ -8,7 +8,7 @@ pub struct InviteLinkService;
impl InviteLinkService {
pub fn generate_token() -> String {
rand::thread_rng()
rand::rng()
.sample_iter(&Alphanumeric)
.take(32)
.map(char::from)