Skip to content

Commit

Permalink
fix autologin after actix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpr03 committed Apr 21, 2022
1 parent 43e32e8 commit fae4f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ async fn main() -> Result<()> {
.app_data(web::Data::new(db_c.clone()))
.app_data(auto_login_tokens.clone())
.app_data(web_client)
// developer for local testing
.service(
web::scope("/HardWhere")
.service(web::resource("/api/checkedout").route(web::get().to(api::lent_list)))
Expand Down
4 changes: 2 additions & 2 deletions src/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub(crate) async fn login(
pub(crate) async fn snipeit_autologin_prepare(
req: web::Json<AutoLoginPrepare>,
cfg: web::Data<Main>,
autologin_token: web::Data<AutoLoginTokens>,
autologin_token: AutoLoginTokens,
) -> Result<HttpResponse> {
info!("Received autologin prepare request");
let req = req.into_inner();
Expand All @@ -126,7 +126,7 @@ pub(crate) async fn auto_login(
path: web::Path<(String,)>,
session: Session,
cfg: web::Data<Main>,
autologin_token: web::Data<AutoLoginTokens>,
autologin_token: AutoLoginTokens,
) -> Result<HttpResponse> {
info!("performing auto login");
session.clear();
Expand Down

0 comments on commit fae4f02

Please sign in to comment.