Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Merge pull request #55 from mprasil/debug_prints
Remove some extra debug prints
Dieser Commit ist enthalten in:
Commit
22786c8c9d
3 geänderte Dateien mit 0 neuen und 8 gelöschten Zeilen
|
@ -397,7 +397,6 @@ fn post_attachment(uuid: String, data: Data, content_type: &ContentType, headers
|
||||||
};
|
};
|
||||||
|
|
||||||
let attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size);
|
let attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size);
|
||||||
println!("Attachment: {:#?}", attachment);
|
|
||||||
attachment.save(&conn);
|
attachment.save(&conn);
|
||||||
}).expect("Error processing multipart data");
|
}).expect("Error processing multipart data");
|
||||||
|
|
||||||
|
|
|
@ -109,9 +109,6 @@ use auth::Headers;
|
||||||
|
|
||||||
#[put("/devices/identifier/<uuid>/clear-token", data = "<data>")]
|
#[put("/devices/identifier/<uuid>/clear-token", data = "<data>")]
|
||||||
fn clear_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: DbConn) -> EmptyResult {
|
fn clear_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: DbConn) -> EmptyResult {
|
||||||
println!("UUID: {:#?}", uuid);
|
|
||||||
println!("DATA: {:#?}", data);
|
|
||||||
|
|
||||||
let device = match Device::find_by_uuid(&uuid, &conn) {
|
let device = match Device::find_by_uuid(&uuid, &conn) {
|
||||||
Some(device) => device,
|
Some(device) => device,
|
||||||
None => err!("Device not found")
|
None => err!("Device not found")
|
||||||
|
@ -128,9 +125,6 @@ fn clear_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: D
|
||||||
|
|
||||||
#[put("/devices/identifier/<uuid>/token", data = "<data>")]
|
#[put("/devices/identifier/<uuid>/token", data = "<data>")]
|
||||||
fn put_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: DbConn) -> JsonResult {
|
fn put_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: DbConn) -> JsonResult {
|
||||||
println!("UUID: {:#?}", uuid);
|
|
||||||
println!("DATA: {:#?}", data);
|
|
||||||
|
|
||||||
let device = match Device::find_by_uuid(&uuid, &conn) {
|
let device = match Device::find_by_uuid(&uuid, &conn) {
|
||||||
Some(device) => device,
|
Some(device) => device,
|
||||||
None => err!("Device not found")
|
None => err!("Device not found")
|
||||||
|
|
|
@ -19,7 +19,6 @@ pub fn routes() -> Vec<Route> {
|
||||||
#[post("/connect/token", data = "<connect_data>")]
|
#[post("/connect/token", data = "<connect_data>")]
|
||||||
fn login(connect_data: Form<ConnectData>, device_type: DeviceType, conn: DbConn) -> JsonResult {
|
fn login(connect_data: Form<ConnectData>, device_type: DeviceType, conn: DbConn) -> JsonResult {
|
||||||
let data = connect_data.get();
|
let data = connect_data.get();
|
||||||
println!("{:#?}", data);
|
|
||||||
|
|
||||||
match data.grant_type {
|
match data.grant_type {
|
||||||
GrantType::RefreshToken =>_refresh_login(data, device_type, conn),
|
GrantType::RefreshToken =>_refresh_login(data, device_type, conn),
|
||||||
|
|
Laden …
In neuem Issue referenzieren