سامانه صدور فاکتور و حسابداری
Apply strong password rules in account settings
davoodmehraban89 committed
Sep 28, 2026 at 13:46 UTC
aa3ff638f52a486f327c6d4adec7bb60139188a8
1 file changed
+1
-1
js/idle-and-reports.js
+1
-1
@@ -271,7 +271,7 @@ function renderFinancialReports(){
271
async function changeAccountPassword(){
272
const p1=document.getElementById('acct-newpass').value;
273
const p2=document.getElementById('acct-newpass2').value;
274
- if(p1.length<8){alert('رمز عبور باید حداقل ۸ کاراکتر باشد.');return;}
274
+ if(typeof isStrongPassword==='function'?!isStrongPassword(p1):p1.length<8){alert('رمز عبور باید حداقل ۸ کاراکتر و شامل حداقل یک حرف و یک عدد باشد.');return;}
275
if(p1!==p2){alert('تکرار رمز عبور با رمز اصلی یکی نیست.');return;}
276
try{
277
const {error}=await sb.auth.updateUser({password:p1,data:{has_password:true}});