You've already forked AstralRinth
forked from didirus/AstralRinth
Fix creator payouts + scheduler (#686)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
pub mod checks;
|
||||
pub mod email;
|
||||
pub mod flows;
|
||||
pub mod minecraft;
|
||||
pub mod pats;
|
||||
pub mod session;
|
||||
mod templates;
|
||||
@@ -48,9 +47,7 @@ pub enum AuthenticationError {
|
||||
#[error("Invalid state sent, you probably need to get a new websocket")]
|
||||
SocketError,
|
||||
#[error("Invalid callback URL specified")]
|
||||
Url,
|
||||
#[error("{0}")]
|
||||
Custom(String),
|
||||
Url
|
||||
}
|
||||
|
||||
impl actix_web::ResponseError for AuthenticationError {
|
||||
@@ -69,7 +66,6 @@ impl actix_web::ResponseError for AuthenticationError {
|
||||
AuthenticationError::Url => StatusCode::BAD_REQUEST,
|
||||
AuthenticationError::FileHosting(..) => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
AuthenticationError::DuplicateUser => StatusCode::BAD_REQUEST,
|
||||
AuthenticationError::Custom(..) => StatusCode::BAD_REQUEST,
|
||||
AuthenticationError::SocketError => StatusCode::BAD_REQUEST,
|
||||
}
|
||||
}
|
||||
@@ -90,7 +86,6 @@ impl actix_web::ResponseError for AuthenticationError {
|
||||
AuthenticationError::Url => "url_error",
|
||||
AuthenticationError::FileHosting(..) => "file_hosting",
|
||||
AuthenticationError::DuplicateUser => "duplicate_user",
|
||||
AuthenticationError::Custom(..) => "custom",
|
||||
AuthenticationError::SocketError => "socket",
|
||||
},
|
||||
description: &self.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user