#![allow(unused)]
use actix_files::{Files, NamedFile};
use actix_form_data::{Error, Field};
use actix_identity::Identity;
use actix_identity::{CookieIdentityPolicy, IdentityService};
use actix_multipart::Multipart;
use actix_web::{
    cookie::Cookie, get, http, middleware, post, web, web::Data, web::Form, web::Path as Pathweb,
    App, HttpRequest, HttpResponse, HttpServer, Responder,
};

use lettre::transport::smtp::commands::Mail;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fmt::format;
use std::{fs::*, string};
use std::path::*;
use std::sync::mpsc::Sender;
use tera::{Context, Tera};

use super::models::User;
use diesel::prelude::*;

use walkdir::{DirEntry, WalkDir};
use serde_json::{json, Serializer, Value};

use super::response;
use super::util::*;

use futures_util::TryStreamExt as _;
use std::io::Write;
use tempfile::tempfile;
use uuid::Uuid;
