Log user handle instead of request.
This commit is contained in:
parent
7292e52d2c
commit
1df7dab092
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user