Changeset 963 for trunk/Modules/User


Ignore:
Timestamp:
Feb 3, 2024, 11:21:34 PM (11 months ago)
Author:
chronos
Message:
  • Fixed: RSS channel generation error.
  • Fixed: Show error message instead of generation of empty RSS channel.
  • Fixed: Wait minimum time if user not logged correctly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserModel.php

    r954 r963  
    245245          setcookie('LoginUserId', $Row['Id'], time()+365*24*60*60, $this->System->Link('/'));
    246246          setcookie('LoginHash', sha1($Row['Id'].$StayLoggedSalt), time()+365*24*60*60, $this->System->Link('/'));
    247         } else {
     247        } else
     248        {
    248249          setcookie('LoginUserId', '', time() - 3600, $this->System->Link('/'));
    249250          setcookie('LoginHash', '', time() - 3600, $this->System->Link('/'));
     
    255256      }
    256257    } else $Result = USER_NOT_REGISTRED;
     258   
     259    // Wait some minimal time if not able to log in to avoid brute forcing passwords
     260    if ($Result != USER_LOGGED_IN) sleep(1);
     261
    257262    return $Result;
    258263  }
Note: See TracChangeset for help on using the changeset viewer.