mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 02:25:41 +00:00
clippy fixes and env docs update
This commit is contained in:
@@ -78,7 +78,7 @@ pub mod runners {
|
||||
use sqlx::Error::RowNotFound;
|
||||
|
||||
let verify = |stored: &str, received: &str| {
|
||||
if Config::verify(&stored, &received)? {
|
||||
if Config::verify(stored, received)? {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(ServiceError::WrongPassword)
|
||||
@@ -144,7 +144,7 @@ pub mod runners {
|
||||
let hash = data.creds.password(&payload.password)?;
|
||||
|
||||
if let Some(email) = &payload.email {
|
||||
data.creds.email(&email)?;
|
||||
data.creds.email(email)?;
|
||||
}
|
||||
|
||||
let mut secret;
|
||||
|
||||
Reference in New Issue
Block a user