Changeset 1402

Show
Ignore:
Timestamp:
07/08/09 08:36:40 (3 years ago)
Author:
benoitg
Message:

Add more explicit error output to signup.php in the search for #583

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/signup.php

    r1401 r1402  
    212212        $errmsg = ""; 
    213213        $authenticated_user = $selectedNetwork->getAuthenticator()->login($username, $password, $errmsg); 
     214        if (!empty($authenticated_user)) { 
     215            throw new Exception(_("Unable to authenticate newly created user.  Please report this bug.  Error was: $errmsg")); 
     216        } 
    214217 
    215218        // While in validation period, alert user that he should validate his account ASAP