Log user handle instead of request.

This commit is contained in:
yukirij 2024-08-24 00:36:55 -07:00
parent 7292e52d2c
commit 1df7dab092

View File

@ -182,7 +182,7 @@ pub async fn thread_system(mut app:App, bus:Bus<protocol::QRPacket>)
// Verify salted secret against user data // Verify salted secret against user data
if argon2::verify_raw(&request.secret.as_bytes(), salt, &user.secret, &argon_config).unwrap_or(false) { if argon2::verify_raw(&request.secret.as_bytes(), salt, &user.secret, &argon_config).unwrap_or(false) {
println!("Authenticated user '{}' id {}", request.handle, *uid); println!("Authenticated user '{}' id {}", user.handle, *uid);
// Generate authentication token and secret // Generate authentication token and secret
response.status = STATUS_OK; response.status = STATUS_OK;