Pre-Release Shakeout (#1932)
* Allow users to setup an account with a fake email and the same username without hitting the validate username code. * Fixed a bug where opds url could have //. Fixed a bug where baseurl wasn't being used for invite link generation * Fixed enum mismatch causing age rating to display incorrectly on UI
This commit is contained in:
parent
202a35dc7c
commit
e7618861e0
12 changed files with 43 additions and 17 deletions
|
@ -647,7 +647,11 @@ public class AccountController : BaseApiController
|
|||
|
||||
// Validate Password and Username
|
||||
var validationErrors = new List<ApiException>();
|
||||
validationErrors.AddRange(await _accountService.ValidateUsername(dto.Username));
|
||||
// This allows users that use a fake email with the same username to continue setting up the account
|
||||
if (!dto.Username.Equals(dto.Email) && !user.UserName!.Equals(dto.Username))
|
||||
{
|
||||
validationErrors.AddRange(await _accountService.ValidateUsername(dto.Username));
|
||||
}
|
||||
validationErrors.AddRange(await _accountService.ValidatePassword(user, dto.Password));
|
||||
|
||||
if (validationErrors.Any())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue