--- title: "User Login" url: https://docs.catalyst.zoho.com/en/sdk/android/v2/cloud-scale/authentication/user-login/ description: "You can display the login page to the end user of your Catalyst Android app." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Authentication" url: /en/cloud-scale/help/authentication/introduction - name: "Users" url: /en/cloud-scale/help/authentication/user-management/users/introduction/ - name: "Authentication - API" url: /en/api/code-reference/cloud-scale/authentication/add-new-user/#AddNewUser --- # User Login You can display the login page to the [end user](https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/user-management/users/introduction/) of your Catalyst Android app using the `login()` method. This will be displayed when the user is logged out of the app. If the login is successful, the user will be able to access the app. The code syntax for user login is given below: ```bash ZCatalystApp.getInstance().login( success: () → Unit, failure: (ZCatalystException) → Unit ): Unit ``` A sample code snippet is shown below: ```bash ZCatalystApp.getInstance().login( { ZCatalystLogger.logInfo("Login Success") //Actions to execute on successful login }, { ZCatalystLogger.logError("Login failed - $it") //Actions to execute on failed login }) ``` The methods of the `ZCatalystLogger` class are used to log the result of the operation. You can define your own actions to execute on a successful or a failed login.