Topic Path: Symbol Reference > Classes > TIdFTP Class > TIdFTP Methods > GetLoginPassword Method > GetLoginPassword Method ()
ContentsIndexHome
PreviousUpNext
TIdFTP.GetLoginPassword Method ()

Constructs the authentication credentials for the FTP session in the Login method.

function GetLoginPassword: String; overload;

String - The hashed OTP Response using the Password for the FTP client.

GetLoginPassword is an overloaded String function used to construct the authentication credentials for the FTP session in the Login method. 

GetLoginPassword provides a mechanism for transparently supporting the One-Time-Password (OTP) system for FTP servers that implement the capability in the response for the FTP USER command. 

GetLoginPassword uses the text in the LastCmdResult as the potential OTP challenge, and calls the overridden GetLoginPassword method. If the response includes a line that begins with the characters "otp-", the hashing algorithm and the challenge are read from the FTP response. The hashing algorithm is used to generate an OTP response using the OTP Challenge and the value in the Password property. 

If an OTP challenge is not found in the response to the FTP USER command, the value in the Password property is used for the authentication credentials in the Login method.

GetLoginPassword 

Login

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.