Skip to content

Commit

Permalink
Increase max password length
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Dec 12, 2024
1 parent daaa49f commit 4672390
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions patches/zano/0008-increase-max-password.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 6812b5de7e0a52e9341e54dbe2fc0b790dc6de5a Mon Sep 17 00:00:00 2001
From: Czarek Nakamoto <[email protected]>
Date: Thu, 12 Dec 2024 09:00:57 -0500
Subject: [PATCH] increase max password

---
src/currency_core/currency_format_utils.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/currency_core/currency_format_utils.cpp b/src/currency_core/currency_format_utils.cpp
index 96d55b4..0c3d947 100644
--- a/src/currency_core/currency_format_utils.cpp
+++ b/src/currency_core/currency_format_utils.cpp
@@ -3632,7 +3632,7 @@ namespace currency
return true;
}
//------------------------------------------------------------------
- #define PASSWORD_REGEXP R"([A-Za-z0-9~!?@#$%^&*_+|{}\[\]()<>:;"'\-=/.,]{0,40})"
+ #define PASSWORD_REGEXP R"([A-Za-z0-9~!?@#$%^&*_+|{}\[\]()<>:;"'\-=/.,]{0,2048})"
bool validate_password(const std::string& password)
{
// OLD: static const std::string allowed_password_symbols = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!?@#$%^&*_+|{}[]()<>:;\"'-=\\/.,";
--
2.39.5 (Apple Git-154)

0 comments on commit 4672390

Please sign in to comment.