Skip to content

Commit

Permalink
Fix bug for validatePassword
Browse files Browse the repository at this point in the history
  • Loading branch information
lhwdev committed Dec 19, 2020
1 parent 8bca1f1 commit f5b8ca9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ suspend fun validatePassword(institute: InstituteInfo, userIdentifier: UserIdent
Json { ignoreUnknownKeys = true }.decodeFromString(PasswordWrong.serializer(), body)
} catch(e: Throwable) {
val userToken = body.removeSurrounding("\"")
require(body.startsWith("Bearer")) { userToken }
require(userToken.startsWith("Bearer")) { userToken }
UsersToken(userToken)
}
}

0 comments on commit f5b8ca9

Please sign in to comment.