Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. procedure getPWS(var ok:boolean; var tries:integer);
  2. var phone,pw,s:astr;
  3. begin
  4. ok := true;
  5. echo := false;
  6. //commandline('User: '+thisUser.name+' Pass: '+thisUser.pw);
  7. sprompt(strings^.enterPW);
  8. inputL(pw,20);
  9. pw := strAllCaps(pw);
  10. if pw <> thisUser.pw then begin
  11. sprint(strings^.wrongPassword);
  12. inc(tries);
  13. if (tries>=status^.maxlogontries) then begin
  14. sprint(strings^.hack);
  15. hangup:=TRUE;
  16. end;
  17. echo := true;
  18. ok := False;
  19. exit;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement