pgina/pgina — Issue #75: Long delay between entry of credentials and "Welcome"
Author: daw42
Created: 2011-12-03 05:44:02+00:00
State: open

After user enters credentials, and there is no corresponding local account, there is a long delay between the point at which the credentials are submitted and when the "Welcome" screen appears. This can confuse the user, often causing them to repeatedly click the arrow button (Win7), or assume the login has failed. The following log dump demonstrates the delay:

```
2011-12-02 21:28:14,014 [4488|25|DEBUG] RemoteLog[NativeLib]: [Credential.cpp:258] Credential::GetSerialization: Processing login for pa
2011-12-02 21:28:14,206 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: New PluginDriver created
2011-12-02 21:28:14,211 [4488|33|DEBUG] pGina.Service.Impl: Processing LoginRequest for: pa in session: 2 reason: Login
2011-12-02 21:28:14,214 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Performing login process
2011-12-02 21:28:14,224 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Authenticating user pa, 2 plugins available
2011-12-02 21:28:14,226 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Calling 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d
2011-12-02 21:28:14,237 [4488|33|DEBUG] LocalMachine: AuthenticateUser(bcb762d1-5d3e-48c3-aa67-810c21c710c5)
2011-12-02 21:28:14,239 [4488|33|DEBUG] LocalMachine: Found username: pa
2011-12-02 21:28:27,386 [4488|33|ERROR] LocalMachine: Failed to authenticate user: pa
2011-12-02 21:28:27,409 [4488|33|WARN ] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d Failed without a message
2011-12-02 21:28:27,414 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Calling 16fc47c0-f17b-4d99-a820-edbf0b0c764a
2011-12-02 21:28:27,419 [4488|33|DEBUG] SimplePlugin: AuthenticateUser(bcb762d1-5d3e-48c3-aa67-810c21c710c5)
2011-12-02 21:28:27,422 [4488|33|DEBUG] SimplePlugin: Found username: pa
2011-12-02 21:28:27,424 [4488|33|INFO ] SimplePlugin: Authenticated user: pa
2011-12-02 21:28:27,427 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: 16fc47c0-f17b-4d99-a820-edbf0b0c764a Succeeded
2011-12-02 21:28:27,430 [4488|33|INFO ] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Successfully authenticated pa
2011-12-02 21:28:27,438 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Authorizing user pa, 0 plugins available
2011-12-02 21:28:27,440 [4488|33|INFO ] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Successfully authorized pa
2011-12-02 21:28:27,450 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Processing gateways for user pa, 1 plugins available
2011-12-02 21:28:27,452 [4488|33|DEBUG] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Calling 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d
2011-12-02 21:28:32,094 [4488|33|DEBUG] LocalMachine: AuthenticatedUserGateway(bcb762d1-5d3e-48c3-aa67-810c21c710c5) for user: pa
2011-12-02 21:28:46,194 [4488|33|INFO ] PluginDriver:bcb762d1-5d3e-48c3-aa67-810c21c710c5: Successfully processed gateways for pa
2011-12-02 21:28:46,258 [4488|27|WARN ] RemoteLog[NativeLib]: Plugins did not set a domain name, assuming local machine!
2011-12-02 21:28:46,275 [4488|18|DEBUG] RemoteLog[NativeLib]: [Provider.cpp:244] Provider::UnAdvise() - provider events callback reference released
2011-12-02 21:28:46,279 [4488|11|DEBUG] RemoteLog[NativeLib]: [Credential.cpp:360] Credential::ReportResult(0x00000000, 0x00000000) called
```

About 32 seconds between the beginning of the process and `Credential::ReportResult`.

It would be nice to show some message to the user indicating that the login is in process immediately, prior to the Windows "Welcome" screen.

Is it possible to hide the username/password fields and display a label temporarily during this process?