Skip to content

6.26.0

Compare
Choose a tag to compare
@vc-ci vc-ci released this 28 Aug 16:10
· 63 commits to master since this release

🎯 Development

  • Refactored and improved error codes for the locked user. POST /account/login API.
Code Condition Default Message
username_or_emailIs_required login.UserName == null && login.Email == null Please provide a username or email
login_failed user == null Login attempt failed. Please check your credentials.
email_verification_is_required loginResult.IsLockedOut && user.Status == "Locked" && !user.EmailConfirmed; Email verification required. Please verify your email address.
user_is_temporary_locked_out loginResult.IsLockedOut && user.LockoutEndDateUtc != DateTime.MaxValue.ToUniversalTime() Your account has been temporarily locked. Please try again after some time.
user_is_locked_out loginResult.IsLockedOut Your account has been locked. Please contact support for assistance.
login_failed !loginResult.Succeeded Login attempt failed. Please check your credentials.
user_cannot_login_in_store NOT            var result = _user.IsAdministrator || _user.StoreId.IsNullOrEmpty();            if (!result)            {                result = obj.TrustedGroups.Concat(new[] { obj.Id }).Contains(_user.StoreId);            }            return result; Access denied. You cannot sign in to the current store
password_expired user.PasswordExpired Your password has been expired and must be changed.
user_not_found user.Contact == null User not found. Please ensure you've entered the correct information.