Skip to content

Commit d19763e

Browse files
committed
Remove a couple of warrnings and a better comment.
1 parent ce91401 commit d19763e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/App/Controllers/Manage/Cognito.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct Cognito {
4646
adminClient: true
4747
)
4848
req.application.cognito.authenticatable = CognitoAuthenticatable(configuration: awsCognitoConfiguration)
49-
try await req.application.cognito.authenticatable.signUp(username: username, password: password, attributes: [:], on:req.eventLoop)
49+
_ = try await req.application.cognito.authenticatable.signUp(username: username, password: password, attributes: [:], on:req.eventLoop)
5050
try awsClient.syncShutdown()
5151
}
5252

Sources/App/Controllers/Manage/LoginController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum LoginController {
2727
case .authenticated(let authenticatedResponse):
2828
let user = AuthenticatedUser(accessToken: authenticatedResponse.accessToken!)
2929
req.auth.login(user)
30-
case .challenged(let challengedResponse): // with the current pool configuration, a challenge response is not expected
30+
case .challenged(_): // Cognito is not configured to send challenges, so we should never receive this response.
3131
break
3232
}
3333
return req.redirect(to: SiteURL.portal.relativeURL(), redirectType: .normal)

0 commit comments

Comments
 (0)