Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
fupelaqu committed Nov 10, 2023
1 parent 441ee18 commit 05ec895
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ trait OAuthServiceEndpoints

override implicit def resultToApiError(result: AccountCommandResult): ApiErrors.ErrorInfo =
result match {
case BasicAuthenticationFailed => ApiErrors.UnauthorizedWithChallenge(Basic, AccountSettings.Realm)
case BearerAuthenticationFailed => ApiErrors.UnauthorizedWithChallenge(Bearer, AccountSettings.Realm)
case BasicAuthenticationFailed =>
ApiErrors.UnauthorizedWithChallenge(Basic, AccountSettings.Realm)
case BearerAuthenticationFailed =>
ApiErrors.UnauthorizedWithChallenge(Bearer, AccountSettings.Realm)
case LoginAndPasswordNotMatched => ApiErrors.Unauthorized(LoginAndPasswordNotMatched)
case AccountDisabled => ApiErrors.Unauthorized(AccountDisabled)
case AccountNotFound => ApiErrors.NotFound(AccountNotFound)
Expand Down

0 comments on commit 05ec895

Please sign in to comment.