Changeset 37 for trunk/Application
- Timestamp:
- Oct 30, 2010, 7:36:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UUser.pas
r36 r37 131 131 DbRows := Database.Query('SELECT `Id` FROM `User` WHERE `Name`="' + Name + '"'); 132 132 try 133 if DbRows.Count = 1 then Result := StrToInt(DbRows[0]. ValuesAtIndex[0])133 if DbRows.Count = 1 then Result := StrToInt(DbRows[0].Items[0].Value) 134 134 else raise ENotFound.Create('User "' + Name + '" not found'); 135 135 finally … … 145 145 '`Password` = SHA1(CONCAT("' + Password + '", Salt))'); 146 146 try 147 if DbRows.Count = 1 then Result := StrToInt(DbRows[0]. ValuesAtIndex[0])147 if DbRows.Count = 1 then Result := StrToInt(DbRows[0].Items[0].Value) 148 148 else raise ENotFound.Create('User "' + Name + '" not found'); 149 149 finally
Note:
See TracChangeset
for help on using the changeset viewer.