ZenphotoCMS Forum
Fix for authentication lockout because zenphoto_auth doesn't match - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Fix for authentication lockout because zenphoto_auth doesn't match (/thread-206.html)



Fix for authentication lockout because zenphoto_auth doesn't match - ballsmag - 2006-01-10

In zp_auth.php:
if (isset($_COOKIE['zenphoto_auth'])) {
[code for pre-authenticated sessions]
} else {
[code to handle new logins from form]
}

However, if the zenphoto_auth cookie is not valid, you cannot login at all because the form handling is handled in the else. The form handling should be outside of an else altogether.