Code format
This commit is contained in:
@@ -10,7 +10,7 @@ internal static class AuthValidator
|
||||
|
||||
public static bool TryValidateRegistration(RegisterRequest request, out ValidatedRegistration validated, out string error)
|
||||
{
|
||||
var username = (request.Username ?? string.Empty).Trim();
|
||||
var username = (request.Username).Trim();
|
||||
if (string.IsNullOrWhiteSpace(username) || username.Length > MaxUsernameLength)
|
||||
{
|
||||
validated = default;
|
||||
@@ -48,7 +48,7 @@ internal static class AuthValidator
|
||||
|
||||
public static bool TryValidateLogin(LoginRequest request, out string username, out string normalizedUsername, out string error)
|
||||
{
|
||||
username = (request.Username ?? string.Empty).Trim();
|
||||
username = (request.Username).Trim();
|
||||
normalizedUsername = string.Empty;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(username) || string.IsNullOrWhiteSpace(request.Password))
|
||||
|
||||
Reference in New Issue
Block a user