Skip to content

Commit 957a272

Browse files
committed
small fixes
1 parent dc8bd5f commit 957a272

File tree

5 files changed

+79
-21
lines changed

5 files changed

+79
-21
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

src/Backend/Nager.AuthenticationService.Abstraction/Models/AuthenticationRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ public class AuthenticationRequest
88
/// <summary>
99
/// Email Address
1010
/// </summary>
11-
public string EmailAddress { get; set; }
11+
public required string EmailAddress { get; set; }
1212

1313
/// <summary>
1414
/// Password
1515
/// </summary>
16-
public string Password { get; set; }
16+
public required string Password { get; set; }
1717

1818
/// <summary>
1919
/// IpAddress

src/Backend/Nager.AuthenticationService.WebApi/Controllers/UserAccountController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ public async Task<ActionResult> ChangePasswordAsync(
7272
/// </summary>
7373
/// <param name="cancellationToken"></param>
7474
/// <returns></returns>
75-
/// <response code="204">Password changed</response>
75+
/// <response code="200">Get Mfa Information</response>
7676
/// <response code="500">Unexpected error</response>
7777
[HttpGet]
7878
[Route("Mfa")]
79-
[ProducesResponseType(StatusCodes.Status204NoContent)]
79+
[ProducesResponseType(StatusCodes.Status200OK)]
8080
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
81-
public async Task<ActionResult> GetMfaActivationAsync(
81+
public async Task<ActionResult<MfaInformation>> GetMfaActivationAsync(
8282
CancellationToken cancellationToken = default)
8383
{
8484
var emailAddress = HttpContext.User.Identity?.Name;
Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,48 @@
1-
using System;
2-
3-
namespace Nager.AuthenticationService.WebApi.Dtos
1+
namespace Nager.AuthenticationService.WebApi.Dtos
42
{
3+
/// <summary>
4+
/// User Info Dto
5+
/// </summary>
56
public class UserInfoDto
67
{
7-
public string Id { get; set; }
8-
9-
public string EmailAddress { get; set; }
10-
11-
public string[] Roles { get; set; }
12-
13-
public string Firstname { get; set; }
14-
15-
public string Lastname { get; set; }
16-
8+
/// <summary>
9+
/// Unique Id
10+
/// </summary>
11+
public required string Id { get; set; }
12+
13+
/// <summary>
14+
/// EmailAddress
15+
/// </summary>
16+
public required string EmailAddress { get; set; }
17+
18+
/// <summary>
19+
/// Roles
20+
/// </summary>
21+
public string[] Roles { get; set; } = [];
22+
23+
/// <summary>
24+
/// Firstname
25+
/// </summary>
26+
public string? Firstname { get; set; }
27+
28+
/// <summary>
29+
/// Lastname
30+
/// </summary>
31+
public string? Lastname { get; set; }
32+
33+
/// <summary>
34+
/// Last Failed Validation Timestamp
35+
/// </summary>
1736
public DateTime? LastFailedValidationTimestamp { get; set; }
1837

38+
/// <summary>
39+
/// Last Successful Validation Timestamp
40+
/// </summary>
1941
public DateTime? LastSuccessfulValidationTimestamp { get; set; }
2042

43+
/// <summary>
44+
/// Is Mfa Active
45+
/// </summary>
2146
public bool MfaActive { get; set; }
2247
}
2348
}
Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,40 @@
1-
<html>
1+
<!DOCTYPE html>
2+
<html lang="en">
23
<head>
3-
<title>place holder</title>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Placeholder</title>
7+
<style>
8+
body {
9+
font-family: Arial, sans-serif;
10+
display: flex;
11+
justify-content: center;
12+
align-items: center;
13+
height: 100vh;
14+
margin: 0;
15+
background-color: #f5f5f5;
16+
color: #555;
17+
}
18+
19+
.message {
20+
text-align: center;
21+
}
22+
23+
.message h1 {
24+
font-size: 2rem;
25+
margin: 0 0 1rem;
26+
}
27+
28+
.message p {
29+
font-size: 1rem;
30+
margin: 0;
31+
}
32+
</style>
433
</head>
534
<body>
6-
replace by ci/cd build
35+
<div class="message">
36+
<h1>Placeholder</h1>
37+
<p>This page will be replaced by the Vue frontend built by the CI/CD pipeline.</p>
38+
</div>
739
</body>
840
</html>

0 commit comments

Comments
 (0)