feat : Implement last las login feature

feat : add transaction password column and write logic for transaction password.
This commit is contained in:
2025-07-22 12:49:44 +05:30
parent 32f6430a5c
commit d4d741b8cc
10 changed files with 141 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
const transferValidator = async (req, res, next) => {
const { fromAccount, toAccount, toAccountType, amount } = req.body;
const accountTypes = ['SB', 'LN'];
const accountTypes = ['SB', 'LN','Savings','Current'];
if (!fromAccount || fromAccount.length != 11) {
return res.status(400).json({ error: 'INVALID_ACCOUNT_NUMBER_FORMAT' });
}