Login control

A control that can except the login credentials for the POS. This control has functionality to switch from token login to user name and password login.

Namespace: LSOne.Services.LoginPanel.Controls

Assembly: LSOne.Services.LoginPanel

Syntax

internal partial class LoginControl : UserControl

Constructors

Name Description
LoginControl() Default constructor

Properties

Name Description
ErrorCode Gets and sets the error code for the login. Resets the user control to receive the user credentials again
ErrorDisplayType Gets and Sets the license error message that is displayed to the user i.e. expired, expiry date and etc.
ExpiryDate Gets and sets the expiry date of the license to be displayed in the login control (if it is expiring)
FocusLogin Sets the focus to the user name text box
Login Gets and sets the user name
Password Gets the password
PasswordControl Gives access to the password text box
UserControl Gives access to the user name text box

Methods

Name Description
ClearPassword Clears the password value in the control
ClearToken Clears the token value in the control
ClearUser Clears the user name value in the control
DelayedClear

In some cases the barcode scanners put random strings into the field milliseconds after the actual scan happens. If that is happening this functionality can be used. This function starts the timer that will prevent the barcode scanner from doing this.

This functionality is not used in the standard product and needs to be activated in a customization when needed.

PressLogin Can be used to manually fire off either the OnTokenLogin or OnLogin events

Events

Name Description
OnLogin Occurs when the control is configured to access user name and password
OnTokenLogin Occurs when the control is configured to accept a token login and the user has either scanned in a token or entered a value and pressed enter
PasswordGotFocus Occurs when the user enters the password text box
PasswordLostFocus Occurs when the user leaves the password text box
PollHardware If a Dallas key is configured in the hardware profile this event will retrieve messages from the Dallas key
UserGotFocus Occurs when the user enters the users text box
UserLostFocus Occurs when the user leaves the users text box

Remarks

This is a private control that can only be used within the Login panel service

Examples

 

See Source\POS\Services\LoginPanelService\LogOnPage.cs from DevPack for usage examples.

 

See also

Login panel service