Changeset 1394

Show
Ignore:
Timestamp:
06/25/09 14:52:10 (3 years ago)
Author:
benoitg
Message:
Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1393 r1394  
    11# $Id$ 
     22009-06-25 Benoit Grégoire <benoitg@coeus.ca> 
     3        * Fix #559 
     4 
    252009-06-23 Benoit Grégoire <benoitg@coeus.ca> 
    36        * Commit another slightly modified patch contributed by Zap Sherbrooke:  Allow generating publicly accessible statistics for the various nodes.  Enabled node per node.  Note that a cron must be setup for those stats to actually be generated. 
  • trunk/wifidog-auth/wifidog/lost_password.php

    r1391 r1394  
    114114         * Get a list of users associated with either a username of an e-mail 
    115115         */ 
    116         if ($username) { 
     116        if ($username && $email){ 
     117            throw new Exception(_("Please specify EITHER your username or your email, not both")); 
     118        } 
     119        else if ($username) { 
    117120            $user = User::getUserByUsernameAndOrigin($username, $account_origin); 
    118121        } 
    119  
    120         if ($email) { 
     122        else if ($email) { 
    121123            $user = User::getUserByEmailAndOrigin($email, $account_origin); 
     124        } 
     125        else { 
     126            throw new Exception(_("You need to specify your username or your email")); 
    122127        } 
    123128