loginFailed(String, StringBuffer) method [deprecated]
Deprecated. Override loginFailed(User, String, LoginFailureReason, StringBuffer, SessionData) instead. This method is called by the Agentry Server when authentication of a client user fails, either because this class returned a failed login from the login or loginPreviousUser methods, or because another system connection failed the login.
Syntax
public
LoginEnumeration
loginFailed
(
String
userId
,
StringBuffer
error
)
Parameters
-
userId –
The user ID for the user whose login attempt has failed.
-
error –
A StringBuffer that will be written to the user's debug log by the Agentry server when this method returns. It should be used to log useful error information within the user's debug log about why the login failed; it will always be logged regardless of the Agentry server's debug settings.
Returns
Login_Invalid or Login_InvalidBlocked. If the latter is returned, then loginBlocked(String, StringBuffer) will be invoked as well.
Usage
It should clean up any user-related resources; it can also return additional information about why the login failed.