Allows you to check the real identity of the current user via biometrics check.
If the authentication is available, a message asks the user to authenticate himself. Then, the WLanguage authentication procedure is called.
Caution: This function only verifies the user's identity via the data stored on his mobile phone. It is not possible to capture and save the user's fingerprint.
Remarks:
Versions 23 and later
New in version 23
CheckUserIdentity("Check the identity for unlocking", Authentication)
// Check procedure
PROCEDURE Authentication(nStatus is int, sErrorMessage is string)
SWITCH nStatus
CASE cuiAuthenticated
Info("Authentication OK")
CASE cuiAuthenticationFailure
Error("Authentication failure: " + sErrorMessage)
CASE cuiAuthenticationUnavailable
Error("Authentication not available")
CASE cuiCustomAuthentication
pwd is string
// Comments typed by the user in a multiline control
SWITCH Input("Enter the password: ", pwd)
// OK
CASE 1:
// Cancel
CASE 0:
END
END
Syntax
CheckUserIdentity(<Message> , <Procedure name> [, <Button caption>])
<Message>: Character string (with quotes)
Message that will be displayed to the user.
<Procedure name>: Character string (with or without quotes)
Name of WLanguage procedure ("callback") called at the end of user authentication. This procedure has the following format:
PROCEDURE <Procedure name> (<Status>, <Error message>)
where:
- <Status> is an Integer constant indicating the authentication status:
| |
cuiAuthenticationUnavailable | The authentication feature is not available or it was disabled by the user. |
cuiCustomAuthentication | The user wants to authenticate by using a password: the application will have to manage this authentication manually |
cuiAuthenticated | The user was properly authenticated. |
cuiAuthenticationFailure | The authentication failed. |
- <Error message> is a character string containing the system error message in case of authentication failure (cuiAuthenticationFailure constant). Otherwise, this parameter corresponds to an empty string.
<Button caption>: Optional character string (with quotes)
Default caption of authentication button (displayed on the button for typing the password). This button is used to connect without checking the biometrics. This button is displayed as soon as the first failure occurs.
Remarks
Versions 25 and later
New in version 25Component : wd260android.jar