Remove config option for admin email, embdedded admin page, managed IO::Error, and added security and cache headers globally

This commit is contained in:
Daniel García
2018-12-23 22:37:02 +01:00
parent 301919d9d4
commit acb9d1b3c6
5 changed files with 93 additions and 51 deletions

View File

@@ -47,6 +47,7 @@ use diesel::result::Error as DieselError;
use jsonwebtoken::errors::Error as JwtError;
use serde_json::{Error as SerError, Value};
use u2f::u2ferror::U2fError as U2fErr;
use std::io::Error as IOError;
// Error struct
// Each variant has two elements, the first is an error of different types, used for logging purposes
@@ -64,6 +65,7 @@ make_error! {
U2fError(U2fErr, _): true, _api_error,
SerdeError(SerError, _): true, _api_error,
JWTError(JwtError, _): true, _api_error,
IoErrror(IOError, _): true, _api_error,
//WsError(ws::Error, _): true, _api_error,
}