fc-server: add dual authentication support; support user accs
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I3603e4b3cc8b5999fe1edafe8a38efb26a6a6964
This commit is contained in:
parent
f5c54b1e05
commit
37e4575ef7
3 changed files with 199 additions and 34 deletions
|
|
@ -81,6 +81,14 @@ impl IntoResponse for ApiError {
|
|||
format!("IO error: {e}"),
|
||||
)
|
||||
},
|
||||
CiError::Internal(msg) => {
|
||||
tracing::error!(message = %msg, "Internal error in API handler");
|
||||
(
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
"INTERNAL_ERROR",
|
||||
msg.clone(),
|
||||
)
|
||||
},
|
||||
};
|
||||
|
||||
if status.is_server_error() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue