Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
run prep, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Aug 22, 2024
1 parent 91d081c commit 2413743
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 203 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 1 addition & 1 deletion src/routes/internal/billing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ pub async fn stripe_webhook(
let price = match metadata.product_price.prices {
Price::OneTime { price } => Some(price),
Price::Recurring { intervals } => {
if let Some((subscription_id, interval)) =
if let Some((_subscription_id, interval)) =
metadata.user_subscription_data
{
if let Some(mut user_subscription) = metadata.user_subscription {
Expand Down
5 changes: 1 addition & 4 deletions src/routes/internal/flows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2055,10 +2055,7 @@ pub async fn change_password(
let update_password = if let Some(new_password) = &change_password.new_password {
let score = zxcvbn::zxcvbn(
new_password,
&[
&user.username,
&user.email.clone().unwrap_or_default(),
],
&[&user.username, &user.email.clone().unwrap_or_default()],
)?;

if score.score() < 3 {
Expand Down

0 comments on commit 2413743

Please sign in to comment.