Changeset 40 for trunk/UCore.pas


Ignore:
Timestamp:
Mar 9, 2012, 8:11:13 AM (13 years ago)
Author:
chronos
Message:
  • Added: Remember last password in login dialog.
  • Fixed: Some Add, Edit, View, Select dialog display.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r38 r40  
    2727    LastProfile: Integer;
    2828    LastPassword: string;
     29    RememberPassword: Boolean;
    2930    Profiles: TProfileList;
    3031    RegistryKey: string;
     
    8485    LastProfile := ReadIntegerWithDefault('LastConnectProfile', -1);
    8586    LastUserName := ReadStringWithDefault('LastUserName', 'admin');
     87    LastPassword := ReadStringWithDefault('LastPassword', '');
     88    RememberPassword := ReadBoolWithDefault('RememberPassword', False);
    8689  finally
    8790    Free;
     
    97100    WriteInteger('LastConnectProfile', LastProfile);
    98101    WriteString('LastUserName', LastUserName);
     102    if RememberPassword then WriteString('LastPassword', LastPassword)
     103      else WriteString('LastPassword', '');
     104    WriteBool('RememberPassword', RememberPassword);
    99105  finally
    100106    Free;
Note: See TracChangeset for help on using the changeset viewer.