¶ Login control
Path: Application->Self-built application->Application details->Login control
Login experience is one of the most important user experiences that software developers need to consider. It is not easy to provide users with a seamless, convenient and secure authentication experience. Generally speaking, login logic is also associated with registration, password reset, account association, etc. More importantly, enhancing security in the form of strong and adaptive authentication during the login process is often critical for many implementations.
Each user pool in GenAuth has an independent second-level domain name and is equipped with an online login page. You can open the login page of this application by visiting the address of the application. GenAuth provides a lot of authentication methods for developers to choose and combine. You don't need to write a line of code. You can maintain the login page through the Login control of the self-built application on the hosted page and make some customized configurations.
The Login Control tab supports the following login/registration methods:
- [Account and Password Login](#Configure Login Method)
- [SMS/Email + Verification Code Login](#Configure Login Method)
- [Mobile App Scan Code Login](#Configure Login Method)
- [Social Identity Source Login](#Social Login Method)
- [Enterprise Identity Source Login](#Enterprise Login Method)

Multiple login/registration methods support multiple cross-implementation scenarios such as web, mobile, and mini-programs. For more details, see the relevant section under Authenticating Users.
Account and Password Login, Verification Code Login, and Mobile App Scan Code Login can implement login and registration paging and login and registration merging in the Login Control tab. The following will introduce each type of login/registration method.
¶ Login and Registration Paging
The following describes the various scenarios for the login and registration paging display.
¶ Login page
You can configure the login method by password, verification code and code scanning. GenAuth provides the following login combinations:
- Mobile phone number + password
- Email + password
- User name + password
- Mobile phone number + verification code
- Email + verification code
- Mobile APP code scanning
¶ Configure login method
To configure the login method on the hosting page, perform the following steps:
Check the required login method under Login control->Login registration method->Login registration page->Login method.
Select Default login method.
The default login method refers to the default login method (password, verification code, code scanning) selected when jumping to the login page.
3. Click the Save button to save the configuration.
¶ Login using password, verification code, or scan code

Administrators can experience various configured login methods through the Experience Login button.
To log in to the application using an account and password, perform the following steps:
- Enter your mobile number/email address/user name in the upper input box.
- Enter your login password in the lower input box.
- Click the Login button.
For verification code login, perform the following steps:
- Enter your mobile number/email address in the upper input box.
- Click Send Verification Code.
- Enter the verification code received by your mobile phone/email address in the lower input box.
- Click the Login button.
The scan code login function requires that the customer has both a web application and a mobile APP, and has logged in to the mobile app. At this time, you can use the mobile APP to scan the code to log in.
For the mobile APP scan code login, follow the steps below:
- Open this application on the mobile terminal.
- Use the mobile APP to scan the web login box.
¶ Forgot password
If you forget your password, follow the steps below to retrieve your password:
- Click Forgot password in the lower left corner of the login box.
- Enter your mobile phone number/email address.
- Click Send verification code.
- Enter the verification code.
- Enter your new password.
- Click the Confirm button. The reset is successful, return to the login page and log in again.
¶ Registration page
You can register the application by password or verification code. GenAuth provides the following registration combinations:
- Email + Password
- Phone Number + Verification Code
- Email + Verification Code
¶ Configure Registration Method
To configure the registration method on the hosting page, follow these steps:
Check the required login method under Login Control->Login Registration Method->Login Registration Paging->Registration Method.
Select Default Registration Method.
The default registration method refers to the registration page that is opened by default when you jump to the registration page (password registration, verification code registration).
- Click the Save button to save the configuration.
¶ Register with password or verification code

To register the app with a password, follow these steps:
- Enter your email address in the upper input box.
- Enter your password in the lower input box and confirm it again.
- Click the Register button.
For verification code registration, follow these steps:
- Enter your phone number/email address in the upper input box.
- Click Send verification code.
- Enter the verification code received by your phone/email address in the lower input box.
- Click the Register button.
¶ Login and Registration Merge
Login and registration combined display supports the following scenarios: 
For the two display modes of login and registration paging and login and registration combined, the configuration and usage of login and registration are similar. Please refer to the login and registration paging section for details.
¶ Social Login Method
Social login refers to the process of users using the identity authentication information of the social platform to authenticate and log in to third-party applications or websites. For example, people often use personal WeChat, QQ, Weibo and other social accounts to log in to Didi, NetEase Cloud Music, etc.
Social login not only helps to simplify the user's login experience on third-party platforms, but also provides a simpler and more convenient way for users to create new accounts on third-party platforms. Whether for ordinary users or enterprises, social login has incomparable advantages.
GenAuth currently supports nearly 30 social logins at home and abroad, such as WeChat, GitHub, Apple, Alipay, etc.
You need to create the social identity source to be used before you can select the created identity source in the Self-built application->Login control tab.

To add a social identity source for a single app, follow these steps:
- Select Login Control->Social Login on the app details page.
- Click +Add Identity Source to open the Select Social Identity Source page.
- Select the target social identity source to add.
In addition to integrating existing third-party social identity sources, administrators can also connect custom social logins.
For a detailed introduction to social login methods, see Social Identity Sources.
¶ Logged-in Users
Administrators can view the list of logged-in users of the current application, view and manage user information, and force offline in the Login Control tab:
To view the details of a logged-in user, click the target user in the Logged-in Users list to open the user details page.
For more information about managing user information, see Managing User Accounts.
To log out a logged-in user, in the row of the target user, in the Action column, click the More button (...), select Force logout, and click Confirm to confirm the logout.
