Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Process 관련 질문 있습니다. #20

Closed
PaleCosmos opened this issue Oct 17, 2019 · 2 comments
Closed

Login Process 관련 질문 있습니다. #20

PaleCosmos opened this issue Oct 17, 2019 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@PaleCosmos
Copy link
Member

val cause = JSONObject(message?:"{}").get("message") as String
        return when (cause.contains("OTP")) {
            true -> NEED_TWO_FACTOR
            false -> BAD_CREDENTIAL
        }

AuthUtil object에서 message를 JSONObject로 변환할 수 없습니다.
Log를 찍어봤는데 message가 다음과 같이 html형식으로 반환됩니다. 어떻게 해야 할까요?

<html>
    <head><title>400 Bad Request</title></head>
     <body>
        <center><h1>400 Bad Request</h1></center>
        <hr><center>nginx</center>
     </body>
</html>
@jungh0
Copy link
Member

jungh0 commented Oct 17, 2019

저도 문제를 확인하였습니다

@PaleCosmos PaleCosmos added bug Something isn't working question Further information is requested labels Oct 17, 2019
@rurimo rurimo assigned rurimo and tlaabs and unassigned rurimo Oct 17, 2019
@PaleCosmos
Copy link
Member Author

해결완료~~ 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Development

No branches or pull requests

4 participants