Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Removed TODOs. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Utar94 authored Apr 29, 2024
1 parent ed9d93c commit 656a112
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public SignInCommandHandler(IMessageService messageService, IOneTimePasswordServ
public async Task<SignInCommandResult> Handle(SignInCommand command, CancellationToken cancellationToken)
{
SignInPayload payload = command.Payload;
// TODO(fpion): validate payload

if (payload.Credentials != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public record CompleteProfilePayload : SaveProfilePayload
public string? Password { get; set; }
public MultiFactorAuthenticationMode MultiFactorAuthenticationMode { get; set; }

public string? PhoneNumber { get; set; } // TODO(fpion): CountryCode? IsVerified?
public string? PhoneNumber { get; set; }

public CompleteProfilePayload() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

public record SaveProfilePayload
{
// TODO(fpion): change Password
// TODO(fpion): change Email/UniqueName
// TODO(fpion): change Phone
// TODO(fpion): change MultiFactorAuthenticationMode

public string FirstName { get; set; }
public string? MiddleName { get; set; }
public string LastName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task<User> SaveProfileAsync(Guid userId, SaveProfilePayload profile
}
if (completedProfile.PhoneNumber != null)
{
payload.Phone = new Modification<PhonePayload>(new PhonePayload(countryCode: null, completedProfile.PhoneNumber, extension: null, isVerified: false)); // TODO(fpion): CountryCode? IsVerified?
payload.Phone = new Modification<PhonePayload>(new PhonePayload(countryCode: null, completedProfile.PhoneNumber, extension: null, isVerified: false));
}
payload.CompleteProfile();
payload.SetMultiFactorAuthenticationMode(completedProfile.MultiFactorAuthenticationMode);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Logitar.Master/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public override void ConfigureServices(IServiceCollection services)
throw new DatabaseProviderNotSupportedException(databaseProvider);
}

services.AddLogitarPortalClient(_configuration); // TODO(fpion): seeding
services.AddLogitarPortalClient(_configuration);
services.AddTransient<IRequestPipeline, HttpRequestPipeline>();
}

Expand Down

0 comments on commit 656a112

Please sign in to comment.