@@ -29,8 +29,9 @@ public AuthController(
2929 }
3030
3131 /// <summary>
32- /// User login - creates authentication cookie
32+ /// User login - creates authentication cookie.
3333 /// </summary>
34+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
3435 [ HttpPost ( "login" ) ]
3536 public async Task < ActionResult < UserInfoDto > > LoginAsync ( [ FromBody ] LoginRequestDto request )
3637 {
@@ -88,8 +89,9 @@ public async Task<ActionResult<UserInfoDto>> LoginAsync([FromBody] LoginRequestD
8889 }
8990
9091 /// <summary>
91- /// Initial user registration - only allows admin creation if no users exist
92+ /// Initial user registration - only allows admin creation if no users exist.
9293 /// </summary>
94+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
9395 [ HttpPost ( "register" ) ]
9496 public async Task < ActionResult < UserInfoDto > > RegisterAsync ( [ FromBody ] RegisterRequestDto request )
9597 {
@@ -124,7 +126,7 @@ public async Task<ActionResult<UserInfoDto>> RegisterAsync([FromBody] RegisterRe
124126
125127 // Sign in the user immediately after successful registration
126128 await _signInManager . SignInAsync ( user , isPersistent : true ) ;
127-
129+
128130 // Update last login time since we just signed them in
129131 user . LastLoginAt = DateTimeOffset . UtcNow ;
130132 await _userManager . UpdateAsync ( user ) ;
@@ -150,8 +152,9 @@ public async Task<ActionResult<UserInfoDto>> RegisterAsync([FromBody] RegisterRe
150152 }
151153
152154 /// <summary>
153- /// Check if initial setup is needed
155+ /// Check if initial setup is needed.
154156 /// </summary>
157+ /// <returns></returns>
155158 [ HttpGet ( "setup-required" ) ]
156159 public ActionResult < bool > IsSetupRequired ( )
157160 {
@@ -168,8 +171,9 @@ public ActionResult<bool> IsSetupRequired()
168171 }
169172
170173 /// <summary>
171- /// Get current user session information
174+ /// Get current user session information.
172175 /// </summary>
176+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
173177 [ HttpGet ( "session" ) ]
174178 [ Authorize ]
175179 public async Task < ActionResult < UserInfoDto > > GetSessionAsync ( )
@@ -201,8 +205,9 @@ public async Task<ActionResult<UserInfoDto>> GetSessionAsync()
201205 }
202206
203207 /// <summary>
204- /// Change user's own password
208+ /// Change user's own password.
205209 /// </summary>
210+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
206211 [ HttpPost ( "change-password" ) ]
207212 [ Authorize ]
208213 public async Task < IActionResult > ChangePasswordAsync ( [ FromBody ] ChangePasswordDto request )
@@ -237,8 +242,9 @@ public async Task<IActionResult> ChangePasswordAsync([FromBody] ChangePasswordDt
237242 }
238243
239244 /// <summary>
240- /// Logout - removes authentication cookie
245+ /// Logout - removes authentication cookie.
241246 /// </summary>
247+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
242248 [ HttpPost ( "logout" ) ]
243249 [ Authorize ]
244250 public async Task < IActionResult > LogoutAsync ( )
@@ -263,8 +269,9 @@ public async Task<IActionResult> LogoutAsync()
263269 }
264270
265271 /// <summary>
266- /// Save telemetry consent settings during onboarding
272+ /// Save telemetry consent settings during onboarding.
267273 /// </summary>
274+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
268275 [ HttpPost ( "telemetry-consent" ) ]
269276 public async Task < IActionResult > SaveTelemetryConsentAsync ( [ FromBody ] TelemetryConsentDto request )
270277 {
@@ -288,8 +295,9 @@ public async Task<IActionResult> SaveTelemetryConsentAsync([FromBody] TelemetryC
288295 }
289296
290297 /// <summary>
291- /// Get current telemetry consent settings
298+ /// Get current telemetry consent settings.
292299 /// </summary>
300+ /// <returns><placeholder>A <see cref="Task"/> representing the asynchronous operation.</placeholder></returns>
293301 [ HttpGet ( "telemetry-consent" ) ]
294302 public async Task < ActionResult < TelemetryConsentDto > > GetTelemetryConsentAsync ( )
295303 {
@@ -310,4 +318,4 @@ public async Task<ActionResult<TelemetryConsentDto>> GetTelemetryConsentAsync()
310318 return StatusCode ( 500 , new { message = "Internal server error" } ) ;
311319 }
312320 }
313- }
321+ }
0 commit comments