Repository navigation
Add uploaded files - #47150
Add uploaded files#47150Lmahmud-BD wants to merge 1 commit into
Conversation
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. This pull request contains code changes, so we will not generate a table of review links. 🤖 This comment is automatically generated. |
|
👋 Hi there! It looks like you've modified some files that we can't accept as contributions:
You'll need to raise a new PR that doesn't include those files, before we can review. The complete list of files we can't accept are:
We also can't accept contributions to files in the content directory with frontmatter |
There was a problem hiding this comment.
🟡 Changes recommended
Multiple active critical security issues remain, including client-controlled authorization, plaintext credential and financial-data exposure, unauthorized workspace modification, and stored XSS vulnerabilities.
14 open issues
Committed demo credentials grant access to the Master Admin account · New Client-controlled state exposes and allows tampering with all user data · New Client-controlled session roles bypass admin authorization checks · New Reset Demo can grant a sub-user the Master Admin session · New Unescaped party data enables HTML and inline-handler injection · New Unescaped Tnx fields enable stored cross-site scripting · New Plaintext passwords are stored, synced, and exposed in the admin UI · New Full-state backups expose every user's credentials and financial data · New Non-admin users can restore and overwrite the entire workspace · New Sub-user imports can inject transactions into other accounts · New Unescaped chat messages enable stored cross-site scripting · New Unescaped category values enable stored cross-site scripting · New Rejected accounts retain user-scoped party and dues records · New Additional admins receive duplicate account numbers · New
What changed in this PR
Adds a standalone My Digital Bank HTML application with client-side account management, financial tracking, reporting, and optional Supabase synchronization.
Changes:
- Adds authentication, sub-user registration, password workflows, account approval, and administration features.
- Adds wallets, transactions, debt tracking, reports, CSV/JSON import and export, and printable statements.
- Adds local persistence, cross-tab synchronization, cloud sync, responsive UI, and live chat support.
| File | Description |
|---|---|
| my_digital_bank_main_website (8).html | Adds the complete standalone digital banking interface and client-side application logic, including authentication, financial records, reporting, backups, chat, and cloud synchronization. |
Review effort: Lite
| email: 'admin@mydigitalbank.bd', | ||
| mobile: '01700-000607', | ||
| address: 'Head Office, Dhaka, Bangladesh', | ||
| password: '1234', |
| const { error } = await supabaseClient | ||
| .from(CLOUD_TABLE) | ||
| .upsert( | ||
| { id: CLOUD_ROW_ID, data: state, updated_at: new Date().toISOString() }, |
| function isMasterAdmin() { | ||
| return Boolean(sessionUser && sessionUser.role === 'admin'); |
| } | ||
|
|
||
| function resetDemoState() { | ||
| state = createInitialState(); |
| <div class="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-bold transition ${chipCls}"> | ||
| <button type="button" onclick="selectTnxPartyQuick('${p.name.replace(/'/g, "\\'")}')" class="cursor-pointer"> | ||
| 👤 ${p.name}${phoneLabel} |
| : 'expense'; | ||
| state.transactions.unshift({ | ||
| id: item.id || `tx-imp-${Date.now()}-${idx}`, | ||
| username: item.username && state.users[item.username] ? item.username : targetU, |
| <span class="shrink-0">${m.time}</span> | ||
| </div> | ||
| ${m.taggedAdmin ? `<div class="mb-1 inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-amber-200/80 text-amber-950 text-[10px] font-extrabold">🏷️ Tagged: ${m.taggedAdmin}</div>` : ''} | ||
| <div class="text-slate-800 font-medium leading-relaxed">${m.text}</div> |
| const catSel = document.getElementById('tx-category'); | ||
| const prevCat = catSel.value; | ||
| catSel.innerHTML = state.categories.map((c) => `<option value="${c}">${c}</option>`).join(''); | ||
| if (prevCat && state.categories.includes(prevCat)) catSel.value = prevCat; |
| delete state.users[uname]; | ||
| delete state.walletsByUser[uname]; | ||
| state.transactions = state.transactions.filter((t) => t.username !== uname); |
| showToast('Username invalid or already exists.'); | ||
| return; | ||
| } | ||
| const assignedAccNo = role === 'admin' ? MASTER_ADMIN_ACCOUNT_NUMBER : getNextBankAccountNumber(state.users); |


my_digital_bank_main_website (8).html
Why:
Closes:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following: