Skip to content

Commit 99bc2a9

Browse files
committed
auth: Rename authenticate_user() fn
1 parent fb489d0 commit 99bc2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl AuthCheck {
5757
}
5858

5959
pub fn check<T: RequestPartsExt>(&self, request: &T) -> AppResult<Authentication> {
60-
let auth = authenticate_user(request)?;
60+
let auth = authenticate(request)?;
6161

6262
if let Some(token) = auth.api_token() {
6363
if !self.allow_token {
@@ -207,7 +207,7 @@ fn authenticate_via_token<T: RequestPartsExt>(
207207
Ok(None)
208208
}
209209

210-
fn authenticate_user<T: RequestPartsExt>(req: &T) -> AppResult<Authentication> {
210+
fn authenticate<T: RequestPartsExt>(req: &T) -> AppResult<Authentication> {
211211
controllers::util::verify_origin(req)?;
212212

213213
let conn = req.app().db_write()?;

0 commit comments

Comments
 (0)