aboutsummaryrefslogtreecommitdiff
path: root/back-end/src/Endpoints/BmAccountEndpoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'back-end/src/Endpoints/BmAccountEndpoint.cs')
-rw-r--r--back-end/src/Endpoints/BmAccountEndpoint.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/back-end/src/Endpoints/BmAccountEndpoint.cs b/back-end/src/Endpoints/BmAccountEndpoint.cs
index e9401fa..24ddb90 100644
--- a/back-end/src/Endpoints/BmAccountEndpoint.cs
+++ b/back-end/src/Endpoints/BmAccountEndpoint.cs
@@ -304,7 +304,7 @@ namespace SimpleBookmark.Endpoints
//Create the new user
UserCreationRequest newUser = new()
{
- EmailAddress = userName,
+ Username = userName,
InitialStatus = UserStatus.Active,
Privileges = privLevel,
Password = PrivateString.ToPrivateString(password, false),
@@ -470,7 +470,7 @@ namespace SimpleBookmark.Endpoints
.NotNull()
.NotEmpty()
.EmailAddress()
- .Length(1, 200);
+ .Length(min: 1, max: 100);
return val;
}