We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
authenticate_user()
1 parent 3fa1eba commit a456f79Copy full SHA for a456f79
src/auth.rs
@@ -57,7 +57,7 @@ impl AuthCheck {
57
}
58
59
pub fn check<T: RequestPartsExt>(&self, request: &T) -> AppResult<Authentication> {
60
- let auth = authenticate_user(request)?;
+ let auth = authenticate(request)?;
61
62
if let Some(token) = auth.api_token() {
63
if !self.allow_token {
@@ -207,7 +207,7 @@ fn authenticate_via_token<T: RequestPartsExt>(
207
return Ok(None);
208
209
210
-fn authenticate_user<T: RequestPartsExt>(req: &T) -> AppResult<Authentication> {
+fn authenticate<T: RequestPartsExt>(req: &T) -> AppResult<Authentication> {
211
controllers::util::verify_origin(req)?;
212
213
let conn = req.app().db_write()?;
0 commit comments