Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes (attempt 2/3)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 2, 2023
1 parent 5546bcb commit 48c51a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 5 additions & 8 deletions ee/tabby-webserver/src/service/auth.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
use anyhow::{Result};
use anyhow::Result;
use argon2::{
password_hash,
password_hash::{rand_core::OsRng, SaltString},
Argon2, PasswordHasher, PasswordVerifier,
};
use async_trait::async_trait;

use validator::Validate;

use super::db::DbConn;
use crate::schema::{
auth::{
generate_jwt, validate_jwt, AuthenticationService, Claims, Invitation,
RefreshTokenResponse, RegisterError, RegisterResponse, TokenAuthError, TokenAuthResponse,
UserInfo, VerifyTokenResponse,
},
use crate::schema::auth::{
generate_jwt, validate_jwt, AuthenticationService, Claims, Invitation, RefreshTokenResponse,
RegisterError, RegisterResponse, TokenAuthError, TokenAuthResponse, UserInfo,
VerifyTokenResponse,
};

/// Input parameters for register mutation
Expand Down
4 changes: 1 addition & 3 deletions ee/tabby-webserver/src/service/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,8 @@ impl DbConn {
#[cfg(test)]
mod tests {



use super::*;
use crate::schema::auth::{AuthenticationService};
use crate::schema::auth::AuthenticationService;

static ADMIN_EMAIL: &str = "[email protected]";
static ADMIN_PASSWORD: &str = "123456789";
Expand Down

0 comments on commit 48c51a2

Please sign in to comment.