feat: user can change login password

feat: user can change transaction password
wip : Admin feature rights -InProgress
This commit is contained in:
2025-09-02 12:41:39 +05:30
parent cb22b926f8
commit 9f6c2f9cc1
11 changed files with 181 additions and 13 deletions

View File

@@ -7,4 +7,5 @@ const router = express.Router();
router.post('/login', adminAuthController.login);
router.get('/admin_details', adminAuthenticate, adminAuthController.fetchAdminDetails);
router.get('/fetch/customer_details',adminAuthenticate,adminAuthController.getUserDetails);
router.post('/user/rights',adminAuthenticate,adminAuthController.UserRights);
module.exports = router;

View File

@@ -9,10 +9,9 @@ router.get('/user_details', authenticate, authController.fetchUserDetails);
router.get('/tpin', authenticate, authController.tpin);
router.post('/tpin', authenticate, authController.setTpin);
router.post('/login_password', authenticate, authController.setLoginPassword);
router.post(
'/transaction_password',
authenticate,
authController.setTransactionPassword
);
router.post('/transaction_password',authenticate,authController.setTransactionPassword);
router.post('/change/login_password',authenticate,authController.changeLoginPassword);
router.post('/change/transaction_password',authenticate,authController.changeTransPassword);
module.exports = router;