mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-06-30 19:45:34 +00:00
test: add more tests for register verification
This commit is contained in:
parent
7ab1d4a935
commit
2fe8dfdab7
3 changed files with 260 additions and 45 deletions
|
@ -36,7 +36,7 @@ mod id;
|
|||
mod register;
|
||||
mod utils;
|
||||
|
||||
pub use database::Database;
|
||||
pub use database::{Config as DatabaseConfig, Database};
|
||||
pub use middleware::ApiError;
|
||||
|
||||
#[serde_inline_default]
|
||||
|
@ -202,7 +202,7 @@ async fn user_get(
|
|||
async fn user_register(
|
||||
State(st): ArcState,
|
||||
SignedJson(msg): SignedJson<UserRegisterPayload>,
|
||||
) -> impl IntoResponse {
|
||||
) -> Result<StatusCode, ApiError> {
|
||||
register::user_register(&st, msg).await
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue