Note: Quick Pay does not show your full history. For that, you need a logged-in account.
On the homepage, look for the or “Login” button at the top right corner.
// Import required modules const express = require('express'); const app = express(); const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const jwt = require('jsonwebtoken'); msedcl login
| Issue | Solution | |-------|----------| | | Reset your password using the “Forgot Password” option. | | OTP not received | Ensure your mobile number is updated with MSEDCL. Visit your nearest sub-station to update it. | | Website not loading | Try a different browser (Chrome/Firefox) or clear your cache. | | Consumer number not recognized | Check your physical bill – the number is usually 10 or 11 digits long. |
// Register user app.post('/register', async (req, res) => try const hashedPassword = await bcrypt.hash(req.body.password, 10); const user = new User( email: req.body.email, password: hashedPassword, mobile: req.body.mobile ); await user.save(); res.send('User registered successfully'); catch (error) res.status(500).send('Error registering user'); Note: Quick Pay does not show your full history
// Login user app.post('/login', async (req, res) => try const user = await User.findOne( email: req.body.email ); if (!user) return res.status(401).send('Invalid email or password');
// Connect to database mongoose.connect('mongodb://localhost/msedcl', useNewUrlParser: true, useUnifiedTopology: true ); | | Website not loading | Try a
The app offers all the same features: bill pay, complaint registration, and digital copies of your bill.
// Start server const port = 3000; app.listen(port, () => console.log(`Server started on port $port`); );