mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
don't debug log token
This commit is contained in:
parent
b0348af90f
commit
3003b361b5
1 changed files with 12 additions and 1 deletions
|
|
@ -3,16 +3,27 @@ use crate::{Error, Result};
|
||||||
use rand::distributions::Alphanumeric;
|
use rand::distributions::Alphanumeric;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
use reqwest::get;
|
use reqwest::get;
|
||||||
|
use serde::ser::SerializeStruct;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sqlx::{query, query_as, Executor, Postgres};
|
use sqlx::{query, query_as, Executor, Postgres};
|
||||||
|
use std::fmt::{Debug, Formatter};
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct User {
|
pub struct User {
|
||||||
pub steam_id: SteamId,
|
pub steam_id: SteamId,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub token: String,
|
pub token: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Debug for User {
|
||||||
|
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||||
|
f.debug_struct("User")
|
||||||
|
.field("steam_id", &self.steam_id)
|
||||||
|
.field("name", &self.name)
|
||||||
|
.finish_non_exhaustive()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
struct UserResult {
|
struct UserResult {
|
||||||
name: String,
|
name: String,
|
||||||
token: String,
|
token: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue