View Issue Details

IDProjectCategoryView StatusLast Update
0004995mantisbtotherpublic2005-04-18 10:43
Reporterjohnwebbcole Assigned Tomasc  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.0.0a1 
Summary0004995: Sign up for a new account no longer works...
Description

Upgraded my 19.1 to the CVS head and the 'Sign up for a new account' now goes back to the sign in screen.

I've tried upgrading the database (though no changes seemed to be needed) with no luck.

This was working in 19.1 and no configuration changes were made. I did a diff between the config defaults and mine, and only my settings were different.

TagsNo tags attached.

Relationships

has duplicate 0005017 closedmasc Problems with sign-up page 
has duplicate 0005103 closedmasc Signup does not work 
has duplicate 0005298 closedgrangeway Signup page returning to login page 
has duplicate 0005393 closedthraxisp signup_page.php redirects back to login.php, new users can't signup 
has duplicate 0005315 closedjlatour Login fails after upgrade from 0.19.0 
related to 0005035 closedthraxisp Lost your password doesn't seem to work 

Activities

masc

masc

2004-12-17 01:32

reporter   ~0008685

The problem is due to the check we do to print out the webmaster email in html_footer():

if ( isset( $_SERVER['PHP_SELF'] ) && ( false === strstr( "login_page.php", $_SERVER['PHP_SELF'] ) ) && !current_user_is_anonymous() ) {

in current_user_is_anonymous() that calls auth_get_current_user_id() and at the end returns an access_denied();

Drop out the test all work fine.

I will investigate how to fix it asap.

johnwebbcole

johnwebbcole

2004-12-17 08:13

reporter   ~0008695

Thanks,
Commenting out lines 353-355 in core\html_api.php fixed the problem.

masc

masc

2004-12-18 03:45

reporter   ~0008720

Fix in CVS. Diff hereafter:

diff -u -r1.24 -r1.25
--- current_user_api.php 11 Dec 2004 20:20:12 -0000 1.24
+++ current_user_api.php 18 Dec 2004 09:38:36 -0000 1.25
@@ -78,7 +78,12 @@

--------------------

# Return true if the currently user is the anonymous user
function current_user_is_anonymous() {
  • if ( auth_is_user_authenticated() ) {
    return current_user_get_field( 'username' ) == config_get( 'anonymous_account' );
  • }
  • else {
  • return false;
  • }
    }

    --------------------

    Trigger an ERROR if the current user account is protected