Skip to main content

3.3.2 Forgot PIN

Forgot PIN feature is provided for resetting PIN so it can be used again for login. it can send to the server and the server will send an email which is registered in the username account (Figure below).

Forgot PIN Flow
image 1

3.3.2.1 ICLManagePasswordHandler

ICLManagePassword class main to do forgot pin function and this doChangePassword this method as execution

void doChangePassword(String userName);

ICLManagePassworHandler
MethodsDescription
doChangePassword(String userName)this function is used to process forget the pin

3.3.2.2 ICLManagePasswordService

ICLManagePasswordService is a protocol provided by ICLManagePasswordHandler. This will return the forgot PIN response via the delegation method every time it is successful or wrong. Make sure the protocol is placed in the class and set the delegation from ICLManagePasswordHandler before forgot PIN.

The ICLManagePasswordService interfaces has methods/callbacks:

  • When forgot PIN is success
onManagePasswordSuccess>

  • When forgot PIN is failed
onManagePasswordSuccess

ICLManagePasswordService
MethodsDescription
onManagePasswordSuccess(CLManageResponse response);This function used if forgot pin process is success
onManagePasswordError(CLErrorResponse error);This function used if forgot pin process return failed