A BASE WebApp for FreePascal/Lazarus & Delphi. This WebApp will create a Login Form and accept a user name and password. It will then hash the password and check it against an SQL database. Upon validating user credentials it will then load a simple default framed home page for a starting point for your own webpage.
!!! IMPORTANT !!!
db_connector.pas Set the following variables to YOUR SETTINGS SQLConn.HostName := 'localhost'// or remote address; SQLConn.DatabaseName := 'staff'; // or relevent database name SQLConn.UserName := ''; SQLConn.Password := '';
Make sure your SQL Database has a table with username and PasswordHash set in it. The username is tested against the login and the PasswordHash is tested against the inputed Password. Password HAS should be set as type CHAR(64) in the SQL Database using this example.
!!! IMPORTANT !!! The HASHING uses the DCPCrypt library. Make sure to download from repository.. Install Lazarus->Package->Online Package Manager->DCPCrypt