zeruniverse / Password-Manager

An online keepass-like tool to manage password. client-side AES encryption!
Other
170 stars 44 forks source link

random_login_stamp #243

Closed CoderJason123 closed 5 years ago

CoderJason123 commented 5 years ago

Hello. when i try to log in, check.php throws an exception here if (!isset($_SESSION['random_login_stamp']) || $_SESSION['random_login_stamp'] == '') {

I know this value is set in info.php. and on that page, i can see the value --- I am on a mac, php 7.1.23.

Any ideas as to what may be going on? Thank you kindly.

zeruniverse commented 5 years ago

Can you post full error.log?

On Wed, Mar 20, 2019 at 5:29 PM CoderJason123 notifications@github.com wrote:

Hello. when i try to log in, check.php throws an exception here if (!isset($_SESSION['random_login_stamp']) || $_SESSION['random_login_stamp'] == '') {

I know this value is set in info.php. and on that page, i can see the value --- I am on a mac, php 7.1.23.

Any ideas as to what may be going on? Thank you kindly.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zeruniverse/Password-Manager/issues/243, or mute the thread https://github.com/notifications/unsubscribe-auth/AEbvNISlxdPNi8kK_mRRrmFvUfNiRhvzks5vYtJSgaJpZM4cAhaH .

CoderJason123 commented 5 years ago

Actually - sorry, what seems to be failing is login --- so on post, you can see my error log i added below which is what i get.... function checksession($link) { global $SERVER_TIMEOUT, $HOSTDOMAIN; session_start(); if (!isset($_SESSION['loginok']) || $_SESSION['loginok'] != 1) { error_log('session not set'); logout();

    return false;
}
zeruniverse commented 5 years ago

Please make sure you have enabled https and have a valid certificate (or an exception).

On Wed, Mar 20, 2019 at 6:14 PM CoderJason123 notifications@github.com wrote:

Actually - sorry, what seems to be failing is login --- so on post, you can see my error log i added below which is what i get.... function checksession($link) { global $SERVER_TIMEOUT, $HOSTDOMAIN; session_start(); if (!isset($_SESSION['loginok']) || $_SESSION['loginok'] != 1) { error_log('session not set'); logout();

return false;

}

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/zeruniverse/Password-Manager/issues/243#issuecomment-475084762, or mute the thread https://github.com/notifications/unsubscribe-auth/AEbvNJWZ1u8u64dYIb35sOQn8VOZLQ7Rks5vYtz6gaJpZM4cAhaH .

CoderJason123 commented 5 years ago

yeah, it all looks good. I'm sorry i am having trouble getting a better description of what is going on. I am using version 10.x.

It's almost like the redirect to window.location.href = "./password.php"; in index.js on the call to backend.js is happening before do login gets to call check.php.

is that possible? i'm not an expert on javascript promises and chained "then"....

zeruniverse commented 5 years ago

So you mean at login page, it jumps to password.php without calling check.php?

On Wed, Mar 20, 2019 at 6:34 PM CoderJason123 notifications@github.com wrote:

yeah, it all looks good. I'm sorry i am having trouble getting a better description of what is going on. I am using version 10.x.

It's almost like the redirect to window.location.href = "./password.php"; in index.js on the call to backend.js is happening before do login gets to call check.php.

is that possible? i'm not an expert on javascript promises and chained "then"....

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/zeruniverse/Password-Manager/issues/243#issuecomment-475087611, or mute the thread https://github.com/notifications/unsubscribe-auth/AEbvNJ2n5I7VfM5Iw_Dg1b0msz5UeyO6ks5vYuGOgaJpZM4cAhaH .

CoderJason123 commented 5 years ago

Let me try to get a handle on it instead of chasing down the rabbit hole :).

CoderJason123 commented 5 years ago

I'm gonna close this issue - thank you for the input, this is some configuration issue on my side and not an issue with the code. Thank you kindly.