TIP: Click on subject to list as thread! ANSI
echo: renegade_bbs
to: All
from: Nick Andre
date: 2011-07-04 13:57:28
subject: Date verification?

I am looking for a way for Renegade to reject a new-user signing on inputting 
an invalid birthday (like anything past the current year minus 18 or 
something)

In the Renegade source code, the following routine gets the date from the
caller:

procedure doage;
var
  s:astr;
  q:boolean;
begin
  if (how = 1) and (IEMSIRec.bdate  '') then
    begin
      buf := IEMSIRec.bdate;
      IEMSIRec.bdate := '';
    end;
  print('Enter date of birth (mm/dd/yyyy). This will be used only in');
  print('conjunction with a password reset if its forgotten.');
  prt(':');
  if how=3 then q:=TRUE else q:=FALSE;
  UserColor(3); inputformatted(s,'##/##/####',q);
  if (s  '') then
    begin
      if (how = 2) then
        sysoplog('Changed birthdate from '+pd2date(user.birthdate)+' to '+s);
      user.birthdate := date2pd(s);
    end;
  done1:=TRUE;
 end;

Do the new versions above Y2KA2 address this or can someone tell me what I 
need to add/change?

I do not want to change the inputformatted function since it may
"break" other
things here.

Nick

--- Renegade vY2Ka2
* Origin: darkrealms.ca (1:229/426)
SEEN-BY: 10/1 11/200 331 123/500 128/2 187 140/1 230/150 250/306 261/20 38 100
SEEN-BY: 261/1381 275/91 340/400 396/45 633/260 267 712/848 800/432 801/161
SEEN-BY: 801/189 2320/303 5030/1256
@PATH: 229/426 123/500 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.