Ignore:
Timestamp:
2008-02-22T11:15:43+13:00 (14 years ago)
Author:
davidb
Message:

Password limit was restricted to max 8 chars. This has been increased to 128.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/userdb.cpp

    r14269 r14999  
    152152bool userdbclass::password_ok (const text_t &password)
    153153{
    154   if (password.size() < 3 || password.size() > 8) return false;
     154  // DB: 20/02/08. Why mustn't the password exceed 8 chars,
     155  // windows 3.1 complicance?  Even then this doesn't make sense to me
     156  // as storing this in GDBM wouldn't trigger a 8-char limit
     157
     158  // Have increased this to 128.  Not because I think someone will type
     159  // in something that long, but some encryptions schemes (e.g. wireless
     160  // networks) work with such lengths and someone one day might like
     161  // to use such a generated password in Greenstone.
     162  //
     163
     164  if (password.size() < 3 || password.size() > 128) return false;
    155165
    156166  text_t::const_iterator here = password.begin();
Note: See TracChangeset for help on using the changeset viewer.