style: cargo fmt & clippy fixes
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
969b517e18
commit
a602c2624f
29 changed files with 216 additions and 86 deletions
|
@ -20,8 +20,8 @@ use crate::{
|
|||
error::Error,
|
||||
schema::*,
|
||||
utils::{
|
||||
PASSWORD_REGEX, generate_token, new_refresh_token_cookie,
|
||||
user_uuid_from_identifier, generate_device_name
|
||||
PASSWORD_REGEX, generate_device_name, generate_token, new_refresh_token_cookie,
|
||||
user_uuid_from_identifier,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -95,7 +95,14 @@ pub async fn response(
|
|||
.execute(&mut conn)
|
||||
.await?;
|
||||
|
||||
let mut response = (StatusCode::OK, Json(Response { access_token, device_name })).into_response();
|
||||
let mut response = (
|
||||
StatusCode::OK,
|
||||
Json(Response {
|
||||
access_token,
|
||||
device_name,
|
||||
}),
|
||||
)
|
||||
.into_response();
|
||||
|
||||
response.headers_mut().append(
|
||||
"Set-Cookie",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue