You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Severity (high)
////////////////////////////////////////////////////////
Reported by: Marwan Osama
////////////////////////////////////////////////////////
Description:
Logging in as a service provider is completely dysfunctional — does any generate any form of response and crashes the server regardless of whether username and password are correct or not. However, if username and password fields are left empty, it redirects to /#/homepage then crashes the server, too.
Issue exists in these files/lines:
app/controllers/servicecontroller.js:29
////////////////////////////////////////////////////////
Steps to reproduce the issue:
Go to homepage (/#/home)
Click on "service provider"
Click on "click To login"
Write any random or correct data in any or both of the fields
Click on "login"
A meaningless message appears and server crashes (see error log in the bottom of the page)
////////////////////////////////////////////////////////
Expected result:
Redirect to /#/homepage with user saved in session if username and password are correct. An appropriate message should be displayed in case of login success or failure.
/404gotfound-master/app/controllers/servicecontroller.js:29
if(req.body.password==servicelogin.password){
^
TypeError: Cannot read property 'password' of null
at Query. (/home/marwan/Downloads/404gotfound-master/app/controllers/servicecontroller.js:29:35)
at /home/marwan/Downloads/404gotfound-master/node_modules/kareem/index.js:177:19
at /home/marwan/Downloads/404gotfound-master/node_modules/kareem/index.js:109:16
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
The text was updated successfully, but these errors were encountered:
Severity (high)
////////////////////////////////////////////////////////
Reported by: Marwan Osama
////////////////////////////////////////////////////////
Description:
Logging in as a service provider is completely dysfunctional — does any generate any form of response and crashes the server regardless of whether username and password are correct or not. However, if username and password fields are left empty, it redirects to /#/homepage then crashes the server, too.
Issue exists in these files/lines:
////////////////////////////////////////////////////////
Steps to reproduce the issue:
////////////////////////////////////////////////////////
Expected result:
Redirect to /#/homepage with user saved in session if username and password are correct. An appropriate message should be displayed in case of login success or failure.
//////////////////////////////////////////////////////
Error log:
The text was updated successfully, but these errors were encountered: