User Registration, Login, Session Check, and Logout API Implementation
Registration API
This API uses a singleton pattern to refactor the cloud communication SMS sending demo (please review when free).
API Documentation
URL: /avi/v1_0/users/
Method: POST
Data format: JSON
Required parameters: mobile, sms_code, password
Response format: JSON
Response parameters: errno, errmsg
Backend Logic
Receive parameters
re ...
Posted on Wed, 15 Jul 2026 17:28:18 +0000 by FormatteD_C
Implementing the Model-View-Presenter Pattern for Android Login Functionality
Context and Motivation
Many developers are familiar with MVP (Model-View-Presenter) as an evolution of MVC, offering clearer separation of concerns, particularly for decoupling the Model from the View. This architectural pattern has gained widespread acceptance among Android developers primarily because it structures code more clearly, even tho ...
Posted on Sat, 11 Jul 2026 17:44:25 +0000 by sam06
Common User Login Modules and Their Usage
Using the 'next' Parameter on the Login Page
Determine if a next parameter exists in the URL of the user's login page. If it does, redirect to the URL the user was trying to access before logging in.
A common practice is to modify the login logic in the LoginView handler by adding the following code:
# Check if the request URL contains a 'next' ...
Posted on Tue, 19 May 2026 08:02:56 +0000 by omprakash
Refactoring User Authentication in ABP Framework
a、Core Layer - Authorizasion.Users.UserStore.cs
public class UserStore : AbpUserStore<Role, User>
{
private readonly IRepository<User, long> _userRepository;
public UserStore(
IUnitOfWorkManager unitOfWorkManager,
IRepository<User, long> userRepository,
IRepository<Role> roleRepository,
...
Posted on Fri, 08 May 2026 19:39:55 +0000 by brunosdiniz