Fix SQL directory: Return Failed instead of Error when the query returns no results
This commit is contained in:
@@ -29,7 +29,7 @@ impl SqlDirectory {
|
||||
.await
|
||||
.caused_by(trc::location!())?,
|
||||
) else {
|
||||
return Err(trc::AuthEvent::Error
|
||||
return Err(trc::AuthEvent::Failed
|
||||
.into_err()
|
||||
.details("SQL login query did not return an account")
|
||||
.ctx(trc::Key::AccountName, username.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user