Skip to content

Commit

Permalink
Close #217
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoii committed Dec 1, 2020
1 parent 1f5dc54 commit ac2bca0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ fun Application.authModule() {
*/
miraiVerify<BindDTO>("/verify", verifiedSessionKey = false) {
val bot = getBotOrThrow(it.qq)
SessionManager.createAuthedSession(bot, it.sessionKey)
if (SessionManager[it.sessionKey] !is AuthedSession) {
SessionManager.createAuthedSession(bot, it.sessionKey)
}
call.respondStateCode(StateCode.Success)
}

Expand Down

0 comments on commit ac2bca0

Please sign in to comment.