Ignore:
Timestamp:
Jul 15, 2016, 2:24:18 PM (8 years ago)
Author:
chronos
Message:
  • Added: Now user name and password can be specified for import sources which require user authentication. Password is not stored in project file for safety reasons. Only Basic authentication is supported.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSource.pas

    r33 r46  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ActnList, Menus, ExtCtrls, UAcronym;
     9  ActnList, Menus, ExtCtrls, MaskEdit, UAcronym;
    1010
    1111type
     
    2525    CheckBoxEnabled: TCheckBox;
    2626    ComboBox1: TComboBox;
     27    EditUserName: TEdit;
    2728    EditName: TEdit;
    2829    EditURL: TEdit;
     30    EditPassword: TEdit;
    2931    Label1: TLabel;
    3032    Label2: TLabel;
    3133    Label3: TLabel;
    3234    Label4: TLabel;
     35    Label5: TLabel;
     36    Label6: TLabel;
    3337    ListBox1: TListBox;
    3438    MenuItem1: TMenuItem;
     
    132136  CheckBoxEnabled.Checked := ImportSource.Enabled;
    133137  ImportSource.Categories.AssignToStrings(ListBox1.Items);
     138  EditUserName.Text := ImportSource.UserName;
     139  EditPassword.Text := ImportSource.Password;
    134140end;
    135141
     
    141147  ImportSource.Enabled := CheckBoxEnabled.Checked;
    142148  ImportSource.Categories.AssignFromStrings(ListBox1.Items);
     149  ImportSource.UserName := EditUserName.Text;
     150  ImportSource.Password := EditPassword.Text;
    143151end;
    144152
Note: See TracChangeset for help on using the changeset viewer.