Showing
1 changed file
with
1 additions
and
1 deletions
@@ -735,7 +735,7 @@ const setMasterCard = (req, res) => { | @@ -735,7 +735,7 @@ const setMasterCard = (req, res) => { | ||
735 | }; | 735 | }; |
736 | 736 | ||
737 | const sessionKeyAuth = (req, res, next) => { | 737 | const sessionKeyAuth = (req, res, next) => { |
738 | - let uid = req.query.uid || req.cookies.installmentUid || req.user.uid.toString() || ''; | 738 | + let uid = req.query.uid || req.cookies.installmentUid || (req.user.uid && req.user.uid.toString()) || ''; |
739 | let sessionKey = req.query.session_key || | 739 | let sessionKey = req.query.session_key || |
740 | req.session.SESSION_KEY || req.user.uid && req.user.uid.sessionKey || ''; | 740 | req.session.SESSION_KEY || req.user.uid && req.user.uid.sessionKey || ''; |
741 | 741 |
-
Please register or login to post a comment