We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkPassword method why not need authorize? is it not safe?
[RemoteService] [Controller] [ControllerName("Login")] [Area("Account")] [Route("api/account")] public class AccountController : AbpController { ... [HttpPost] [Route("checkPassword")] public virtual async Task<AbpLoginResult> CheckPassword(UserLoginInfo login) { ValidateLoginInfo(login); var identityUser = await _userManager.FindByNameAsync(login.UserNameOrEmailAddress); if (identityUser == null) { return new AbpLoginResult(LoginResultType.InvalidUserNameOrPassword); } return GetAbpLoginResult(await _signInManager.CheckPasswordSignInAsync(identityUser, login.Password, true)); } ... }
The text was updated successfully, but these errors were encountered:
It is similar to the Login method, no authorize is required, but I found that it should call ReplaceEmailToUsernameOfInputIfNeeds
Login
ReplaceEmailToUsernameOfInputIfNeeds
Sorry, something went wrong.
CheckPassword method should call ReplaceEmailToUsernameOfInputIfNeeds.
88a13e9
Resolve #2287
maliming
Successfully merging a pull request may close this issue.
checkPassword method why not need authorize? is it not safe?
The text was updated successfully, but these errors were encountered: