Release: NX9-Auth v0.3.0
This commit is contained in:
1 parent
6a04d7f793
commit
d93f2cef95
92 files changed
+2418
-1143
No files matched your search
+4
-1
@@ -112,7 +112,10 @@ pub async fn login(
|
||||
return Err(AppError::InvalidCredentials);
|
||||
}
|
||||
|
||||
let user = final_user.expect("authenticated user");
|
||||
let user = match final_user {
|
||||
Some(u) => u,
|
||||
None => return Err(AppError::InvalidCredentials),
|
||||
};
|
||||
|
||||
// Clear rate limit on success
|
||||
if let Some(ip_str) = &ctx.ip_address {
|
||||
|
||||
Reference in new issue
Block a user