mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(users): Added blacklist for users (#3469)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -264,6 +264,11 @@ pub async fn connect_account(
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn signout(state: AppState, user_from_token: auth::UserFromToken) -> UserResponse<()> {
|
||||
auth::blacklist::insert_user_in_blacklist(&state, &user_from_token.user_id).await?;
|
||||
Ok(ApplicationResponse::StatusOk)
|
||||
}
|
||||
|
||||
pub async fn change_password(
|
||||
state: AppState,
|
||||
request: user_api::ChangePasswordRequest,
|
||||
|
||||
Reference in New Issue
Block a user